[Koha-bugs] [Bug 23336] Add an API endpoint for issuing an item to a patron
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jul 19 13:06:38 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23336
--- Comment #1 from Andrew Isherwood <andrew.isherwood at ptfs-europe.com> ---
Created attachment 91632
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91632&action=edit
Bug 23336: Add POST /checkouts issue endpoint
This patch adds a POST /checkouts issue endpoint for creating checkouts
Test plan:
- Run unit tests in t/db_dependent/api/v1/checkouts.t
- Make POST request to http://yourlibrary/api/v1/checkouts with request body
containing at least 'patron_id' & 'barcode' properties, other possible
properties are:
"due_date": Checkout due date
"inprocess": Boolean
"ignore_reserves": Boolean
"cancel_reserve": Either null, "revert" or "cancel"
"issue_date": Checkout issue date
"sipmode": Boolean
"params": Object containing arbitrary properties that will
be passed to CanBookBeRenewed and AddIssue
- Observe returned data and HTTP code
- 201 for checkout created
- 403 for cannot be checked out (with reason in response body)
- 404 for either invalid patron or barcode
- 500 for something else went wrong
--
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