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

Jan Kissig <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #154428|0                           |1
        is obsolete|                            |
 Attachment #154429|0                           |1
        is obsolete|                            |
 Attachment #154430|0                           |1
        is obsolete|                            |
 Attachment #154431|0                           |1
        is obsolete|                            |
 Attachment #156884|0                           |1
        is obsolete|                            |
 Attachment #156885|0                           |1
        is obsolete|                            |

--- Comment #22 from Jan Kissig <[email protected]> ---
Created attachment 168337
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168337&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

-- 
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/

Reply via email to