Bug 16497: (follow-up) Adapt to existing guidelines and RFC
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 11 Jan 2019 16:23:14 +0000 (13:23 -0300)
committerroot <root@f1ebe1bec408>
Tue, 19 Feb 2019 13:52:14 +0000 (13:52 +0000)
commit0718416ff1ca70a25bc12fa3b677fdeafd7854c8
tree6ac9ee193527e0742ff7eecec35cd96824cafdff
parent311f5f38c328267244481c8e5419be01e7d0aa12
Bug 16497: (follow-up) Adapt to existing guidelines and RFC

This patch makes the original implementation match what is specified on
the RFC [1].

The controller is updated, and so the tests.

To test:
- Apply this patches:
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/libraries.t
=> SUCCESS: Tests pass!

[1] https://wiki.koha-community.org/wiki/Libraries_endpoint_RFC

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/REST/V1/Library.pm
api/v1/swagger/definitions/library.json
api/v1/swagger/parameters.json
api/v1/swagger/parameters/library.json
api/v1/swagger/paths.json
api/v1/swagger/paths/libraries.json
api/v1/swagger/x-primitives.json
t/db_dependent/api/v1/libraries.t