Koha-clms/api/v1/swagger/paths
Tomas Cohen Arazi 4948faacc0 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>
2022-01-10 22:04:58 +00:00
..
acquisitions_funds.json Bug 28613: Add missing parameters to objects.search-based routes 2021-10-29 11:56:29 -04:00
acquisitions_orders.json Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00
acquisitions_vendors.json Bug 28613: Add missing parameters to objects.search-based routes 2021-10-29 11:56:29 -04:00
advancededitormacros.json Bug 28613: Add missing parameters to objects.search-based routes 2021-10-29 11:56:29 -04:00
biblios.json Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00
cash_registers.json Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00
checkouts.json Bug 28613: Add missing parameters to objects.search-based routes 2021-10-29 11:56:29 -04:00
circulation-rules.json Bug 28463: Add missing tags 2021-05-27 17:17:19 +02:00
cities.yaml Bug 29072: Move reference route /cities spec to YAML 2021-10-01 14:26:59 -04:00
clubs.json Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00
config_smtp_servers.json Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00
holds.json Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00
ill_backends.json Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00
illrequests.json Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00
import_batch_profiles.json Bug 28613: Add missing parameters to objects.search-based routes 2021-10-29 11:56:29 -04:00
items.json Bug 28613: Add missing parameters to objects.search-based routes 2021-10-29 11:56:29 -04:00
libraries.json Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00
oauth.json Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00
patrons.json Bug 29018: Make DELETE /patrons/:patron_id check things 2022-01-10 22:04:58 +00:00
patrons_account.json Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00
patrons_extended_attributes.json Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00
patrons_holds.json Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00
patrons_password.json Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00
public_patrons.json Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00
quotes.json Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00
return_claims.json Bug 28463: Add tags definitions in swagger.yaml 2021-05-27 17:17:19 +02:00
rotas.json Bug 28463: Add missing tags 2021-05-27 17:17:19 +02:00
suggestions.yaml Bug 17314: OpenAPI spec 2021-11-02 08:42:22 -04:00
transfer_limits.yaml Bug 28463: Add summary to all routes 2021-05-27 17:17:19 +02:00