Koha-clms/api/v1/swagger/paths
Tomas Cohen Arazi 0e23a87769 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: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2022-01-07 06:24:24 -05:00
..
acquisitions_funds.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
acquisitions_orders.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
acquisitions_vendors.yaml Bug 29620: (follow-up) Rename remaining old-style parameters 2021-12-10 07:29:16 -05:00
advancededitormacros.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
article_requests.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
biblios.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
cash_registers.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
checkouts.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
circulation-rules.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
cities.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
clubs.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
config_smtp_servers.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
holds.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
ill_backends.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
illrequests.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
import_batch_profiles.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
items.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
libraries.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
oauth.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
patrons.yaml Bug 29018: Make DELETE /patrons/:patron_id check things 2022-01-07 06:24:24 -05:00
patrons_account.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
patrons_extended_attributes.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
patrons_holds.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
patrons_password.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
public_patrons.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
quotes.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
return_claims.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
rotas.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
suggestions.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00
transfer_limits.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-10 07:29:02 -05:00