Koha-clms/api/v1/swagger/paths
Tomás Cohen Arazi f7caec076f
Bug 42679: Add GET /patrons/{patron_id}/overdues_count endpoint
Returns the count of overdue checkouts for a patron as a plain integer.
Computed live from the database (date_due < NOW()) to ensure accuracy,
as overdue status is time-based with no discrete event to trigger updates.

This endpoint is intended for async loading in the patron search table,
allowing the main search results to render immediately while overdues
are fetched separately per visible page.

Test plan:
1. Apply patch
2. Run:
   $ ktd --shell
   k$ prove t/db_dependent/api/v1/patrons_overdues_count.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-09-11 16:05:56 +00:00
..
acquisitions_baskets.yaml
…
acquisitions_edifiles.yaml
…
acquisitions_funds.yaml
…
acquisitions_orders.yaml
…
acquisitions_vendor_issues.yaml
…
acquisitions_vendors.yaml Bug 41594: Add Cypress tests 2026-04-14 10:49:05 -06:00
acquisitions_vendors_config.yaml
…
acquisitions_vendors_extended_attribute_types.yaml
…
action_logs.yaml Bug 43119: Restore item and hold links to the log viewer 2026-07-27 12:13:00 +00:00
additional_contents.yaml
…
advancededitormacros.yaml
…
article_requests.yaml
…
auth.yaml
…
authorised_value_categories.yaml
…
authorised_values.yaml
…
authorities.yaml Bug 41901: Allow duplicate check when adding authority via API 2026-04-29 09:09:12 -06:00
biblios.yaml Bug 38122: Add the ability to group holdings by status 2026-06-12 16:24:10 +00:00
biblios_item_groups.yaml
…
biblios_merge.yaml
…
bookings.yaml
…
cash_registers.yaml Bug 41751: Allow anonymous_refund permission to access cashups API 2026-05-01 11:04:26 -06:00
checkouts.yaml Bug 23415: Add REST API support for fine override on renewal 2026-03-22 23:27:26 +01:00
circulation_rules.yaml Bug 10190: Add manage_circ_triggers permission for notice trigger access 2026-09-10 14:25:09 +00:00
circulation_rules_config.yaml Bug 10190: Add manage_circ_triggers permission for notice trigger access 2026-09-10 14:25:09 +00:00
cities.yaml
…
clubs.yaml
…
config_file_transports.yaml
…
config_search_mappings.yaml Bug 22639: Add GET /config/search_mappings endpoint 2026-04-15 11:37:17 -06:00
config_smtp_servers.yaml
…
deleted_biblios.yaml Bug 17387: (follow-up) fix embed items on get deleted biblio 2026-04-15 14:10:28 -06:00
deleted_items.yaml Bug 17387: (follow-up) move records_restore under editcatalogue permission 2026-04-15 14:10:27 -06:00
erm_agreements.yaml
…
erm_config.yaml
…
erm_counter_files.yaml
…
erm_counter_logs.yaml
…
erm_counter_registries.yaml
…
erm_custom_reports.yaml
…
erm_default_usage_reports.yaml
…
erm_documents.yaml
…
erm_eholdings_packages.yaml
…
erm_eholdings_packages_resources.yaml
…
erm_eholdings_resources.yaml
…
erm_eholdings_titles.yaml
…
erm_eholdings_titles_resources.yaml
…
erm_extended_attribute_types.yaml Bug 39438: (bug 38446 follow-up) Add agreement_period to /erm/extended_attribute_types 2026-01-30 10:54:11 -07:00
erm_licenses.yaml
…
erm_sushi_services.yaml
…
erm_usage_data_providers.yaml
…
erm_usage_databases.yaml
…
erm_usage_items.yaml
…
erm_usage_platforms.yaml
…
erm_usage_titles.yaml
…
erm_users.yaml
…
extended_attribute_types.yaml
…
holds.yaml Bug 37762: Circulation: Hook to holds 2026-05-08 12:25:43 -06:00
ill_backends.yaml
…
ill_batches.yaml
…
ill_batchstatuses.yaml
…
ill_config.yaml Bug 42845: Add ILL config endpoint for Vue app 2026-07-27 15:53:48 +00:00
ill_iso18626.yaml Bug 37762: (RM follow-up) Fix swagger defs 2026-05-08 12:25:53 -06:00
ill_iso18626_requesting_agencies.yaml Bug 37762: ISO18626 KOHA classes 2026-05-08 12:25:41 -06:00
ill_iso18626_requests.yaml Bug 37762: Circulation: Hook to holds 2026-05-08 12:25:43 -06:00
ill_requests.yaml Bug 40504: Add 'managedby' to illrequests 2026-03-26 14:21:22 +01:00
ill_users.yaml Bug 40504: Add ill/users API endpoint 2026-03-26 14:21:21 +01:00
import_batch_profiles.yaml
…
import_batches.yaml
…
item_types.yaml
…
items.yaml Bug 40154: prevent deletion of items with holds 2026-02-10 10:52:04 -07:00
jobs.yaml
…
libraries.yaml Bug 42206: (follow-up) Rename to /closed_dates, improve efficiency 2026-05-01 11:04:25 -06:00
lists.yaml
…
oauth.yaml
…
patron_categories.yaml Bug 10190: Fix patron_categories permission format 2026-09-10 14:25:05 +00:00
patrons.yaml Bug 42679: Add GET /patrons/{patron_id}/overdues_count endpoint 2026-09-11 16:05:56 +00:00
patrons_account.yaml
…
patrons_account_links.yaml Bug 39658: API: Add REST endpoints for patron account links 2026-09-09 12:07:27 +00:00
patrons_checkouts.yaml Bug 32682: Update patrons chekcoput route to allow access with new permission 2026-01-30 10:54:13 -07:00
patrons_extended_attributes.yaml
…
patrons_hold_groups.yaml Bug 41849: Add cancel hold_group REST API endpoint 2026-04-10 09:48:04 -06:00
patrons_holds.yaml Bug 40364: (follow-up) Fix duplicated mapping key issue 2026-01-30 10:54:17 -07:00
patrons_image.yaml Bug 35797: (RM follow-up): Fix xt/api.t 2026-08-19 11:03:30 +00:00
patrons_password.yaml
…
patrons_recalls.yaml
…
preservation_config.yaml
…
preservation_processings.yaml
…
preservation_trains.yaml
…
preservation_waiting_list.yaml
…
public_csp_reports.yaml Bug 38365: Make swagger-cli happy 2026-03-16 11:57:37 +01:00
public_oauth.yaml
…
public_patrons.yaml Bug 26355: Update the API specs 2026-05-01 09:29:59 -06:00
quotes.yaml
…
record_sources.yaml Bug 35380: Change record sources to by systemdefined 2026-03-26 09:46:15 +01:00
return_claims.yaml
…
rotas.yaml
…
search_filters.yaml
…
sip2_accounts.yaml
…
sip2_institutions.yaml
…
sip2_system_preference_overrides.yaml
…
status.yaml Bug 41107: Add /status/version API endpoint 2026-03-23 09:33:54 +01:00
suggestions.yaml
…
sysprefs.yaml Bug 41994: Implement /sysprefs route to list system preferences 2026-04-15 11:37:05 -06:00
tickets.yaml
…
transfer_limits.yaml
…
transfers.yaml Bug 42443: (QA follow-up) Use POST /transfers/{transfer_id}/cancellation 2026-09-04 11:23:41 +00:00