Summary: | Update API to allow to reserve first available item from a group of titles | ||
---|---|---|---|
Product: | Koha | Reporter: | Julian Maurice <julian.maurice> |
Component: | Web services | Assignee: | Julian Maurice <julian.maurice> |
Status: | BLOCKED --- | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | benjamin.rokseth, claire.hernandez, m.de.rooy |
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: | 15516, 13903 | ||
Bug Blocks: | |||
Attachments: |
Bug 15566: API - allow to reserve first available from a group of titles
Bug 15566: API - allow to reserve first available from a group of titles |
Description
Julian Maurice
2016-01-13 13:20:07 UTC
Created attachment 48447 [details] [review] Bug 15566: API - allow to reserve first available from a group of titles Test plan: 0. Find 1 borrower and 2 biblios they can place a hold on. Let's call them $borrowernumber, $biblionumber1 and $biblionumber2 1. Make a POST request to http://your.library.org/api/v1/reserves with the following body: { "onlyfirst": true, "reserves": [ { "borrowernumber": $borrowernumber, "biblionumber": $biblionumber1 }, { "borrowernumber": $borrowernumber, "biblionumber": $biblionumber2 }, ] } 2. Check that you get a 201 response with the reserves informations 3. Check in staff interface that the reserves were correctly made Created attachment 50097 [details] [review] Bug 15566: API - allow to reserve first available from a group of titles Test plan: 0. Find 1 borrower and 2 biblios they can place a hold on. Let's call them $borrowernumber, $biblionumber1 and $biblionumber2 1. Make a POST request to http://your.library.org/api/v1/reserves with the following body: { "onlyfirst": true, "reserves": [ { "borrowernumber": $borrowernumber, "biblionumber": $biblionumber1 }, { "borrowernumber": $borrowernumber, "biblionumber": $biblionumber2 }, ] } 2. Check that you get a 201 response with the reserves informations 3. Check in staff interface that the reserves were correctly made Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no> Rebased against master. Any reason this is blocked? Tests pass and API seems fine, although its certainly gonna conflict with Bug 15567 - Update API to allow multiple holds for the same record, at least the code in Koha/REST/V1/Reserve.pm and the definition files I don't remember why I changed the status to BLOCKED. All dependencies are Signed Off, so we can change it back to Needs Signoff As I already signed off this one and tested it ok, I see no reason it shouldn't move on to QA Depends on a PNA patch If PNA is like DNA, I think I can unblocked it. Blocked: this depends on a failed qa report. |