https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24401
Nick Clemens (kidclamp) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #173194|0 |1 is obsolete| | --- Comment #29 from Nick Clemens (kidclamp) <[email protected]> --- Created attachment 176190 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=176190&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 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 <[email protected]> Signed-off-by: David Nind <[email protected]> Signed-off-by: Nick Clemens <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
