Bug 20004: Adapt /v1/cities to new naming guidelines
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 17 Jan 2018 17:03:28 +0000 (14:03 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 16 Feb 2018 20:53:42 +0000 (17:53 -0300)
commitdfbadc70d4d6b117b9287beda8b2b46dced6b432
tree85b1ef125ec7b733758a11c72c3d5226cb5fa555
parent3afbbdf48cad8acda06fc21333b270cb1944d454
Bug 20004: Adapt /v1/cities to new naming guidelines

This patch implements the changes required by the cities endpoint RFC
[1].

It uses the objects.search helper, and relies on bug 19686.

To test:
- Apply the patches
- Compare the spec with the RFC (api/v1/swagger/definitions/city.json)
=> SUCCESS: It makes sense
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/cities.t
=> Tests pass!
- Sign off :-D

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/V1/Cities.pm
api/v1/swagger/definitions/city.json
api/v1/swagger/parameters.json
api/v1/swagger/parameters/city.json
api/v1/swagger/paths.json
api/v1/swagger/paths/cities.json
api/v1/swagger/x-primitives.json