[Koha-bugs] [Bug 15566] Update API to allow to reserve first available item from a group of titles

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 29 13:42:08 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15566

--- Comment #1 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 48447
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48447&action=edit
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

-- 
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