]> git.koha-community.org Git - koha.git/commit
Bug 27932: Add GET /biblios/:biblio_id/pickup_locations route
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 11 Mar 2021 18:47:10 +0000 (15:47 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 30 Apr 2021 15:19:01 +0000 (17:19 +0200)
commit2db98432d85568943c92bb1cd092960edb1e64eb
tree32dff0e2824f51b0301b066a9ecc051f079d5664
parent5047557cbf3b33e3066fcd5d0ff65cebcf78c230
Bug 27932: Add GET /biblios/:biblio_id/pickup_locations route

This patch adds the mentioned route. It does so by:
- Adding the new path in paths.json
- Adding the full route spec in biblios.json
- Adds a controller method that takes care of the task

To test:
1. Apply this patches
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/biblios.t
=> SUCCESS: Tests pass!
3. Play with your favourite REST tool. Pay special care to
   the AllowHoldPolicyOverride syspref and the expected behaviors.
=> SUCCESS: All works as expected
4. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/V1/Biblios.pm
api/v1/swagger/paths.json
api/v1/swagger/paths/biblios.json