Bug 37617

Summary: Opening and closing hours should be either delivered in libraries responses or have a dedicated endpoint
Product: Koha Reporter: Paul Derscheid <paul.derscheid>
Component: REST APIAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: martin.renvoize, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 6796    
Bug Blocks:    

Description Paul Derscheid 2024-08-12 09:36:35 UTC
I'd suggest that we make the opening and closing times accessible via the API for usage within koha (for example in Vue) as well as usage on external websites (for example an institution's main website separate from the OPAC).

We could either add it to the /libraries endpoint's responses or create a dedicated endpoint for opening hours.

I'm leaning more towards the inclusion within the library responses.
Comment 1 Martin Renvoize (ashimema) 2024-08-22 10:34:37 UTC
You can embed them already.
Comment 2 Martin Renvoize (ashimema) 2024-08-22 10:36:12 UTC
However.. I'd really like to see bug 36079 happen where we actually allow for regular open/closed days to be set with opening hours and thus returned in the same embedded response