[Koha-bugs] [Bug 36075] Add API route to list recalls
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Feb 20 11:23:56 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36075
Pedro Amorim <pedro.amorim at ptfs-europe.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #162087|0 |1
is obsolete| |
--- Comment #4 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
Created attachment 162290
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162290&action=edit
Bug 36075: Add REST API endpoint to list recalls
This enhancement adds a REST API endpoint to list recalls and run search
queries on recalls
/api/v1/recalls
/api/v1/recalls?patron_id=X
To test:
1. Log in to the staff interface as your superlibrarian self (Patron A)
2. Go to Koha Administration -> Global system preferences. Enable the
UseRecalls system preference
3. Set the relevant recalls circulation and fines rules
4. Search for an item (Item A)
5. Check out Item A to yourself (Patron A)
6. Log in to the OPAC as Patron B
7. Search for Item A and request a recall
8. Test the API returns the recall: https://your-opac-url/api/v1/recalls
9. Test other search parameters:
https://your-opac-url/api/v1/recalls?patron_id=PATRON_B_NUMBER
10. Confirm you are able to view a list of Patron B's recalls
11. Confirm tests pass: t/db_dependent/api/v1/recalls.t
Sponsored-by: Auckland University of Technology
Signed-off-by: Pedro Amorim <pedro.amorim at ptfs-europe.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list