Koha-clms/api/v1/swagger
Tomas Cohen Arazi 01b9367625 Bug 28254: Make PUT /holds/:hold_id/pickup_location honour x-koha-override
This patch adds a new parameter (x-koha-override header) to the route,
and makes the controller pass this information (override requested) when
the AllowHoldPolicyOverride syspref is set, to
Koha::Hold->set_pickup_location.

This way, under certain conditions, we can be sure the update wont'
fail.

To test:
1. Apply this patchset
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/holds.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-05-04 14:22:08 +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 28254: Make PUT /holds/:hold_id/pickup_location honour x-koha-override 2021-05-04 14:22:08 +02:00
definitions.json Bug 23666: Add spec 2021-04-22 14:50:11 +02:00
parameters.json Bug 26633: Add REST API for managing transfer limits 2021-03-16 16:08:30 +01:00
paths.json Bug 27932: Add GET /biblios/:biblio_id/pickup_locations route 2021-04-30 17:19:01 +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