]> git.koha-community.org Git - koha.git/commit
Bug 33573: Add public endpoint for cancelling holds
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 7 Jun 2023 13:42:15 +0000 (10:42 -0300)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Tue, 18 Jul 2023 14:44:56 +0000 (14:44 +0000)
commitf906e1bb655255677f014020262ba3acdce0cdc4
tree35d1b9829e2deee6db72951e34aa05bab2dbdf50
parentd84e74c5a416bf7ad804eb43dbdacc245802653d
Bug 33573: Add public endpoint for cancelling holds

This patch introduces a public endpoint for cancelling holds.
Cancellation requests are generated when the hold is waiting and
configuration allows requesting cancellation, as the OPAC does right
now.

Tests cover all the use cases.

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

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 252753f84f53a33f3fd3bd4bf3fb8ae02b53ede7)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit ef5422bbca8ebacee3448af309d6a91a6922bf08)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Koha/REST/V1/Patrons/Holds.pm
api/v1/swagger/paths/public_patrons.yaml
api/v1/swagger/swagger.yaml