[Koha-bugs] [Bug 17005] REST API: add routes to list checkouts history
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Aug 1 17:24:10 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17005
--- Comment #1 from Jiri Kozlovsky <mail at jkozlovsky.cz> ---
Created attachment 53843
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=53843&action=edit
Bug 17005: REST API: add routes to list checkouts history
GET /checkouts/history (get all old_issues'
issue_id)
GET /checkouts/history?borrowernumber={borrowernumber} (get all borrower's
old_issues)
GET /checkouts/history/{checkout_id} (get old_issue)
+ unit tests in t/db_dependent/api/v1/checkoutshistory.t
Test plan:
1. Open a browser tab on Koha staff and log in (to create CGISESSID
cookie). You should have permission circulate_remaining_permissions.
2. Go to http://yourlibrary/api/v1/checkouts/history?borrowernumber=XXX
(replace
XXX with a borrowernumber that has some checkouts history) and check you
receive
correct data
3. Go to http://yourlibrary/api/v1/checkouts/history/YYY (replace YYY with an
existing checkout id) and check you receive correct data
4. Run unit tests in t/db_dependent/api/v1/checkoutshistory.t
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list