[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:08:02 CEST 2019


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

Andrew Isherwood <andrew.isherwood at ptfs-europe.com> changed:

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

--- Comment #2 from Andrew Isherwood <andrew.isherwood at ptfs-europe.com> ---
Created attachment 91633
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91633&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 watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list