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: koha-bugs@lists.koha-community.org Reporter: paul.derscheid@lmscloud.de QA Contact: testopia@bugs.koha-community.org CC: tomascohen@gmail.com 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.