[Koha-bugs] [Bug 17003] REST API: add route to get checkout's renewability

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 15 13:17:02 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17003

Lari Taskula <lari.taskula at jns.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #56507|0                           |1
        is obsolete|                            |

--- Comment #5 from Lari Taskula <lari.taskula at jns.fi> ---
Created attachment 57489
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57489&action=edit
Bug 17003: Add API route to get checkout's renewability

GET /checkouts/{checkout_id}/renewability (renewability status)

Response:
- 200: renewability { renewable: true/false, error: "error message" }

To test:
1. Login to Koha
2. Checkout something for yourself
3. Make GET request to http://yourlibrary/api/v1/checkouts/YYY/renewability
   where YYY is checkout_id of your checkout.
4. Observe returned data. If not renewable, an error should also be presented.
5. Run t/db_dependent/api/v1/checkouts.t

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list