[Koha-bugs] [Bug 17428] REST api: CRUD endpoint for cities
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 13 16:37:44 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17428
--- Comment #12 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Comment on attachment 56314
--> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56314
Bug 174828: Followup - More RESTfull handling of endpoints
Review of attachment 56314:
--> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=17428&attachment=56314)
-----------------------------------------------------------------
::: t/db_dependent/api/v1/cities.t
@@ +96,5 @@
> $tx = $t->ua->build_tx( GET => '/api/v1/cities?city_blah=blah' );
> $tx->req->cookies( { name => 'CGISESSID', value => $session_id } );
> $tx->req->env( { REMOTE_ADDR => $remote_address } );
> + $t->request_ok($tx)->status_is(200)
> + ->json_is( [ $city, $another_city, $city_with_another_country ] );
I'd like to make sure this is the expected behaviour. It will make debug less
easier.
Could you find resources/best practices about that please?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list