Koha-clms/t/db_dependent/api/v1
Alex Arnaud 914afffd56
Bug 22613: Add GET endpoint /patrons/{patron_id}/checkouts
This patch adds a new endpoint, for fetching checkouts from a specific
patron.

Test plan:

1. Apply this patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/patrons_checkouts.t
=> SUCCESS: Tests pass!
3. Run:
   $ curl -v -s -u koha:koha --request GET \
        http://kohadev.local/api/v1/patrons/{id}/checkouts
test with query parameters (they are the same as for /patrons/{id}/holds
=> SUCCESS: The API works!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-04-26 20:15:49 +02:00
..
items
…
acquisitions_baskets.t
…
acquisitions_funds.t
…
acquisitions_orders.t Bug 36066: (follow-up) Move 403 to 409 when status ne cancelled 2024-03-08 18:58:29 +01:00
acquisitions_vendor_issues.t
…
acquisitions_vendors.t
…
advanced_editor_macros.t
…
article_requests.t Bug 36495: Use render_resource_not_found() helper everywhere 2024-04-26 18:06:13 +02:00
auth.t
…
auth_authenticate_api_request.t
…
auth_basic.t Bug 36420: Unit tests 2024-04-18 16:51:14 +02:00
authorised_values.t
…
authorities.t Bug 36495: Use render_resource_not_found() helper everywhere 2024-04-26 18:06:13 +02:00
biblios.t Bug 31791: Add x-record-source-id header to POST /biblios 2024-04-26 20:15:38 +02:00
bookings.t Bug 36100: (QA follow-up) Move 400 to 409 2024-03-07 16:36:42 +01:00
cashups.t Bug 36493: Make cashups test more robust 2024-04-12 11:26:01 +02:00
checkouts.t Bug 35469: Add 'manage_bookings' subpermission to /checkouts 2024-03-07 17:35:39 +01:00
cities.t
…
clubs_holds.t Bug 36495: Use render_resource_not_found() helper everywhere 2024-04-26 18:06:13 +02:00
deleted_biblios.t Bug 33960: Unit tests 2024-04-22 08:57:51 +02:00
edifact_files.t
…
erm_agreements.t
…
erm_counter_files.t
…
erm_counter_registries.t
…
erm_custom_reports.t Bug 36093: (QA follow-up) Fix unit tests 2024-04-19 18:06:39 +02:00
erm_documents.t
…
erm_eholdings_packages.t
…
erm_eholdings_resources.t
…
erm_eholdings_titles.t Bug 36495: Use render_resource_not_found() helper everywhere 2024-04-26 18:06:13 +02:00
erm_licenses.t
…
erm_sushi_services.t
…
erm_usage_data_providers.t
…
erm_usage_titles.t
…
erm_users.t
…
holds.t
…
idp.t
…
ill_backends.t Bug 35581: Koha::Illrequest -> Koha::ILL::Request 2024-04-22 08:57:45 +02:00
ill_batches.t Bug 35581: Koha::Illrequest -> Koha::ILL::Request 2024-04-22 08:57:45 +02:00
ill_batchstatuses.t Bug 35581: Illbatchstatus* -> ILL::Batch::Status* 2024-04-22 08:57:42 +02:00
ill_requests.t Bug 35581: Koha::Illrequest -> Koha::ILL::Request 2024-04-22 08:57:45 +02:00
import_batch_profiles.t
…
import_record_matches.t
…
item_groups.t
…
item_types.t
…
items.t
…
jobs.t Bug 36495: Use render_resource_not_found() helper everywhere 2024-04-26 18:06:13 +02:00
libraries.t Bug 36482: Add embed tests 2024-04-26 18:06:12 +02:00
oauth.t
…
pagination.t Bug 35129: Regression tests 2024-04-04 15:24:34 +02:00
password_validation.t
…
patrons.t Bug 36505: Unit tests 2024-04-26 18:06:15 +02:00
patrons_accounts.t
…
patrons_checkouts.t Bug 22613: Add GET endpoint /patrons/{patron_id}/checkouts 2024-04-26 20:15:49 +02:00
patrons_extended_attributes.t
…
patrons_holds.t Bug 35353: Add REST API endpoint to retrieve old holds 2024-04-26 18:06:09 +02:00
patrons_password.t
…
patrons_password_expiration.t
…
patrons_recalls.t Bug 35967: Add more test cases 2024-04-19 19:54:44 +02:00
preservation_Processings.t
…
preservation_Trains.t
…
preservation_WaitingList.t
…
query.t
…
record_sources.t Bug 35919: Add /record_sources endpoints 2024-04-26 17:06:03 +02:00
responses.t Bug 36495: Add render_resource_not_found() and render_resource_deleted() helpers 2024-04-26 18:06:13 +02:00
return_claims.t
…
search_filters.t
…
smtp_servers.t
…
stockrotationstage.t
…
suggestions.t Bug 36495: Use render_resource_not_found() helper everywhere 2024-04-26 18:06:13 +02:00
ticket_updates.t
…
tickets.t Bug 35616: (QA follow-up): tidy up code and fix exec permission 2024-04-22 08:57:37 +02:00
transfer_limits.t Bug 36329: (follow-up) Fix error message comparisson in testes 2024-03-19 18:09:03 +01:00
two_factor_auth.t
…
unhandled_exceptions.t
…