Availability endpoints RFC

From Koha Wiki

Jump to: navigation, search


Relevant bugs

13927: Add API route to check hold capabilities (https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13927)

16825: Add API route for getting an item (https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16825)

16826: REST API: Add API routes for getting item availability and holdability (https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16826)

Actions and routes

Description Action Proposed path
Get checkout availibility for an object
Get hold availibility for an object

Where <object> could be:

  • biblios
  • items

Query params

  • patron_id - finds availability for a patron
  • library_id - limits results by library

without any param it return general/anonymous availability in all libraries


200 OK available desired service

403 Forbidden not available for desired service + reason in json