https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42206
Bug ID: 42206
Summary: Add REST endpoint GET /libraries/{id}/holidays
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: REST API
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
There is currently no API endpoint to retrieve closed days for a library. This
makes it difficult for frontend components (e.g. bookings) to determine which
dates a library is closed without server-side rendering.
This patch adds a GET /api/v1/libraries/{library_id}/holidays endpoint that
returns a list of xholiday dates (YYYY-MM-DD) for a given library within an
optional date range, using Koha::Calendar. Defaults to today + 3 months if no
range is specified. Returns 400 if the to date precedes from, and 404 if the
library does not exist.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/