Test: Fetch all the items
my $get1 = $test->request( GET '/api/v2/items');
my $items1 = decode_json($get1->content);
is scalar @{$items1->{items}}, 1;
is $items1->{items}[0]{text}, 'First Thing to do';
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
my $get1 = $test->request( GET '/api/v2/items');
my $items1 = decode_json($get1->content);
is scalar @{$items1->{items}}, 1;
is $items1->{items}[0]{text}, 'First Thing to do';