https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24401 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168337|0 |1 is obsolete| | --- Comment #24 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 172764 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172764&action=edit Bug 24401: Add API endpoint to checkin items This adds a post /checkin endpoint to return checked out items either by its item_id or by barcode. To test you can use f.e. ThunderClient extension in codium/vscode. Test plan for ktd on main: a) enable system preference RESTBasicAuth b) check out an item and remember its item id or barcode. You can use the checkouts endpoint for this: Auth: username: koha & password: koha Body JSON: { "item_id" : 578, "library_id": "CPL" } POST http://localhost:8081/api/v1/checkouts c) apply patch and check in item via new checkin endpoint Auth: username: koha & password: koha Body JSON: { "item_id" : 578, "library_id": "CPL" } or { "external_id" : "39999000011418", "library_id": "CPL" } POST http://localhost:8081/api/v1/checkin The endpoint accepts item_id and/or barcode as body params. d) check JSON response for return messages e) run unit tests: prove t/db_dependent/api/v1/checkin.t Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.