Koha-clms/api/v1/swagger
Tomas Cohen Arazi 60a253c983 Bug 18729: (follow-up) Adjust API to new spec
The previous patch introduces some behavioural changes to the API, as
well as the data types that need to be passed; all happens in the tests.

This patch adapts the route so it complies with those changes:
- JSON object containing pickup_library_id attribute is now passed back
  and forth.
- The controller should take care of checking the pickup location is
  valid, using the available tools.

To test:
1. Apply the patches, up to the tests
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/holds.t
=> ERROR: Tests fail because the controller doesn't implement the
desired behavior
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-04-16 16:27:29 +02:00
..
definitions Bug 27894: Adapt /holds/:hold_id/pickup_locations 2021-04-07 16:08:04 +02:00
parameters Bug 26633: Add REST API for managing transfer limits 2021-03-16 16:08:30 +01:00
paths Bug 18729: (follow-up) Adjust API to new spec 2021-04-16 16:27:29 +02:00
definitions.json Bug 26633: Add REST API for managing transfer limits 2021-03-16 16:08:30 +01:00
parameters.json Bug 26633: Add REST API for managing transfer limits 2021-03-16 16:08:30 +01:00
paths.json Bug 18729: Add PUT /holds/{hold_id}/pickup_location 2021-04-16 16:27:29 +02:00
swagger.json Bug 18137: Remove x-mojo-around-action 2017-09-21 11:27:05 -03:00
x-primitives.json Bug 26633: Add REST API for managing transfer limits 2021-03-16 16:08:30 +01:00