]> git.koha-community.org Git - koha.git/commit
Bug 28948: Add GET /public/libraries routes
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 7 Jan 2021 11:50:43 +0000 (08:50 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 28 Oct 2021 15:32:34 +0000 (17:32 +0200)
commitc56b2db564139e11361d74c10348f6b0189fa5f5
treefab937413459052212550e981d3b8cf649525ae9
parent7647d5147861ad3b0c83ea9fabeba6ad837b9f0c
Bug 28948: Add GET /public/libraries routes

This patch introduces a route to fetch a list of libraries or a single
library as expected on the /public namespace. It is expected to return
the 'public' representation of the Koha::Library objects.

To test:
1. Apply this patches
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/libraries.t
=> SUCCESS: Test pass and they cover all the cases!
3. Try your favourite REST tool against the new route.
4. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
api/v1/swagger/paths.json
api/v1/swagger/paths/libraries.json