[Koha-bugs] [Bug 24401] REST API: Check-in

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 12 03:40:05 CEST 2023


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

--- Comment #20 from Aleisha Amohia <aleisha at catalyst.net.nz> ---
Created attachment 156885
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=156885&action=edit
Bug 24401: Add API endpoint to check in items

This adds a POST /checkouts/{checkout_id}/checkin/{library_id} endpoint for
returning checkouts

To test:

- Run unit tests in t/db_dependent/api/v1/checkouts.t
- Make POST request to
http://yourlibrary/api/v1/checkouts/{checkout_id}/checkin/{library_id} where
checkout_id is the ID of the checkout you're returning and library_id is the
branchcode of the return library
- Observe returned data
  - 400 incorrect params
  - 403 cannot be returned
  - 404 missing params
  - 201 item checked in

Sponsored-by: Auckland University of Technology

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


More information about the Koha-bugs mailing list