Koha-clms/api/v1/swagger/parameters
Julian Maurice b37bb2bbad
Bug 13895: Add API routes for checkouts retrieval and renewal
GET /checkouts?borrowernumber={borrowernumber}
GET /checkouts/{checkout_id}
PUT /checkouts/{checkout_id}

+ unit tests in t/db_dependent/api/v1/checkouts.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?borrowernumber=XXX (replace
   XXX with a borrowernumber that has checkouts) and check you receive
   correct data
3. Go to http://yourlibrary/api/v1/checkouts/YYY (replace YYY with an
   existing checkout id) and check you receive correct data
4. Send PUT requests to http://yourlibrary/api/v1/checkouts/YYY until
   the maximum number of renewals is reached (you should have a 403
   error)
5. Run unit tests in t/db_dependent/api/v1/checkouts.t

Depends on bugs 16699 and 14868

Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>

Signed-off-by: Lari Taskula <larit@student.uef.fi>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit e3f2e346f8)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-04-01 15:01:55 +01:00
..
checkout.json Bug 13895: Add API routes for checkouts retrieval and renewal 2019-04-01 15:01:55 +01:00
city.json Bug 20004: Adapt /v1/cities to new naming guidelines 2018-02-16 17:53:42 -03:00
fund.json Bug 19661: REST API - Funds Endpoint 2019-04-01 11:28:58 +01:00
hold.json Bug 20006: Spec changes 2019-03-19 10:51:25 +00:00
library.json Bug 16497: (follow-up) Adapt to existing guidelines and RFC 2019-02-25 19:01:29 +00:00
patron.json Bug 19784: Adapt /v1/patrons to new naming guidelines 2018-03-29 11:42:08 -03:00
vendor.json Bug 18120: Add '/acquisitions/vendors' endpoint 2017-09-29 17:13:13 -03:00