Summary: | REST API: Add endpoint for patron status / blocks | ||
---|---|---|---|
Product: | Koha | Reporter: | Lari Taskula <lari.taskula> |
Component: | REST API | Assignee: | Lari Taskula <lari.taskula> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | jonathan.druart, mirko |
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: | 16826 | ||
Bug Blocks: | |||
Attachments: |
Bug 18013: Add patronstatus to Swagger
Bug 18013: Add patronstatus operation to controller Bug 18103: Add patronstatus to Swagger Bug 18103: Add patronstatus operation to controller |
Description
Lari Taskula
2017-02-13 13:04:58 UTC
Created attachment 60159 [details] [review] Bug 18013: Add patronstatus to Swagger This patch adds the Swagger definition for patronstatus. Created attachment 60160 [details] [review] Bug 18013: Add patronstatus operation to controller This patch adds patronstatus operation to Koha::REST::V1::Patron. Also adds new method Koha::Patron->status_not_ok that returns an array of Koha::Exceptions if there are some issues with patron status. To test: 1. prove t/db_dependent/Koha/Patrons.t 2. prove t/db_dependent/api/v1/patrons.t Tests are still failing due to data type changes. Created attachment 60161 [details] [review] Bug 18103: Add patronstatus to Swagger This patch adds the Swagger definition for patronstatus. Created attachment 60162 [details] [review] Bug 18103: Add patronstatus operation to controller This patch adds patronstatus operation to Koha::REST::V1::Patron. Also adds new method Koha::Patron->status_not_ok that returns an array of Koha::Exceptions if there are some issues with patron status. To test: 1. prove t/db_dependent/Koha/Patrons.t 2. prove t/db_dependent/api/v1/patrons.t Corrected invalid Bug number. Is this ready to be tested? Please set the status to "Needs signoff" then. |