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)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 18 Jun 2021 12:44:45 +0000 (08:44 -0400)
commit832e6196c588212265c2556b80e9379cf66f9ef7
tree7ac4e28568d55a6869843110cdc2932ccdc1a917
parentb16741176da2d8bb5a67978fd6d65cbbfec65e9e
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>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/REST/V1/Items.pm
api/v1/swagger/paths.json
api/v1/swagger/paths/items.json