Koha-clms/api/v1/swagger
Tomas Cohen Arazi df22d207f2 Bug 29018: Make DELETE /patrons/:patron_id check things
When the route was implemented, the checks were overlooked. This patch
adds checks for:
- Guarantees
- Debts
- Current checkouts

Any of those will block deletion, as it should.

To test:
1. Apply the regression tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/patrons.t
=> FAIL: Tests fail, the route misses checks
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass! The three conditions prevent deletion!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit 4948faacc0)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
2022-02-07 19:50:26 +01:00
..
definitions Bug 29405: Fix date_renewed attribute format in patron spec 2021-11-19 14:16:56 -10:00
parameters Bug 24083: Add support for unseen_renewals 2020-11-11 16:09:58 +01:00
paths Bug 29018: Make DELETE /patrons/:patron_id check things 2022-02-07 19:50:26 +01:00
definitions.json Bug 23019: (follow-up) Fix usability issues 2020-11-11 15:55:49 +01:00
parameters.json Bug 27680: Add support for sorting fields with multiple data points 2021-03-04 10:41:48 +01:00
paths.json Bug 18729: Add PUT /holds/{hold_id}/pickup_location 2021-04-22 16:40:27 +02:00
swagger.json Bug 18137: Remove x-mojo-around-action 2017-09-21 11:27:05 -03:00
x-primitives.json Bug 17268: Advanced cataloging editor macros - add endpoint 2020-05-04 08:25:21 +01:00