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

--- Comment #51 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 198610
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198610&action=edit
Bug 24401: Add checkin REST API endpoint with confirmation flow

Adds two new endpoints:
- GET /checkins/availability — pre-check with JWT token
- POST /checkins — perform check-in with optional confirmation

The response is the Koha::Checkin object serialized via to_api with
support for embedding related objects (item, checkout, library, hold,
recall, transfer, restriction, claim, debits, credits, etc).

Follows the same confirmation flow pattern as POST /checkouts:
1. Client calls availability endpoint to get blockers/confirms
2. If confirmations exist, a JWT token is returned
3. Client passes the token to the checkin endpoint to confirm

Test plan:
1. Apply patch
2. Run:
   $ ktd --shell
   k$ yarn api:bundle
   k$ prove t/db_dependent/api/v1/checkins.t
=> SUCCESS: Tests pass!
3. Run xt/ API validation:
   k$ prove xt/api.t
=> SUCCESS: Tests pass!
4. Sign off :-D

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