Summary: | REST API: Include renewability information on checkouts | ||
---|---|---|---|
Product: | Koha | Reporter: | Lari Taskula <lari.taskula> |
Component: | REST API | Assignee: | Josef Moravec <josef.moravec> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | ere.maijala, jonathan.druart, josef.moravec, tomascohen |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Bug Depends on: | 17003, 17005, 18137 | ||
Bug Blocks: | |||
Attachments: |
Bug 18407: REST API: Add expanded checkout information
Bug 18407: (follow-up) Add renewability error information Bug 18407: (follow-up) Add test for librarian access Bug 18407: (squashable) Fix rollback issue |
Description
Lari Taskula
2017-04-10 09:28:19 UTC
Created attachment 61991 [details] [review] Bug 18407: REST API: Add expanded checkout information GET /api/v1/checkouts/expanded?borrowernumber=1337 This endpoint includes basic checkout information as well as additionally information on renewability. To test: 1. prove t/db_dependent/api/v1/checkoutsexpanded.t This patch does not yet apply and is dependent on Mojolicious::Plugin::OpenAPI migration and /api/v1/checkouts endpoint (Bug 13895). I just dumped the patch here if anyone is interested in similar feature. Rebase when those move on. Created attachment 61992 [details] [review] Bug 18407: (follow-up) Add renewability error information Created attachment 61993 [details] [review] Bug 18407: (follow-up) Add test for librarian access Created attachment 65009 [details] [review] Bug 18407: (squashable) Fix rollback issue I've optimized the retrieval a bit in our local custom version: https://github.com/KohaSuomi/Koha/blob/master/Koha/REST/V1/Checkout.pm#L247, so I think that's worth checking out too. |