Catalyst Maintainable web apps made easy! #136

Request data from API

$mech->add_header('X-DoqueueKey' => $api_key);
$mech->get_ok('http://localhost/api/tasks/1');
my $res = jsonToObj($mech->content);
like $res->{tasks}[0]{task}, qr/this is a test/;

$mech->get_ok('http://localhost/api/metadata/1');
$res = jsonToObj($mech->content);
is scalar @{$res->{metadata}}, 3, '3 metadata';
Copyright © 2007 Jonathan Rockway