Bug 27931: Add GET /items/:item_id/pickup_locations
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 11 Mar 2021 19:30:52 +0000 (16:30 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 14 Jun 2021 15:35:19 +0000 (17:35 +0200)
commitbbe424dcfbe67c0f73231948b61fb949c2a8daf2
treee017c1ab57ba8f3be4d156fe93834dfa0dc5bf22
parent8f0fe0c6f02854f20efa6b6397817bc4c1edc37c
Bug 27931: Add GET /items/:item_id/pickup_locations

This patch adds the mentioned route. It does so by:
- Adding the new path in paths.json
- Adding the full route spec in items.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/items.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/Items.pm
api/v1/swagger/paths.json
api/v1/swagger/paths/items.json