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

--- Comment #33 from Jan Kissig <[email protected]> ---
(In reply to Jonathan Druart from comment #32)
> Settings to in discussion for the delete/checkin decision.
> 
> Has this been discussed before?
> 
> I found this on the wiki:
> https://wiki.koha-community.org/wiki/New_REST_API_RFC
> GET     /rest/v1/borrower/<borrowernumber>/checkout                     Gets
> list of currently checked out items for this patron
> POST    /rest/v1/borrower/<borrowernumber>/checkout/<barcode>          
> Check out an item to this patron
> PUT     /rest/v1/borrower/<borrowernumber>/checkout/<barcode>          
> Renew an item already checked out to this patron
> DEL     /rest/v1/borrower/<borrowernumber>/checkout/<barcode>          
> Return an item checked out to this patron


The actual checkout is now POST /api/v1/checkouts with a body { patron_id,
external_id }
Analog to this the checkin would be DELETE /api/v1/checkouts but DELETE does
not allow a request body so I used POST /api/v1/checkin instead. I know this is
ugly and the above routes from the wiki would make more sense.

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