]> git.koha-community.org Git - koha.git/commit
Bug 16213: Allow to select hold's itemtype when using API
authorJulian Maurice <julian.maurice@biblibre.com>
Wed, 6 Apr 2016 11:12:51 +0000 (13:12 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 30 Jan 2018 17:21:28 +0000 (14:21 -0300)
commitc76281f3fcb4f634a1e1a8f74b9663763c874dfd
tree5889b72148a5dab358725e430415e8fed829cd09
parent83177006302494bc3a5bc67a7d89d373d5a9002c
Bug 16213: Allow to select hold's itemtype when using API

Test plan:
1/ Use your usual "REST testing" tool to place a title-level hold with
an itemtype. The request should look like this:

POST /api/v1/holds
{
    "borrowernumber": 1234,
    "biblionumber": 456,
    "branchcode": "CPL",
    "itemtype": "A"
}

2/ Check that the hold was placed and the itemtype is correctly selected
3/ prove t/db_dependent/api/v1/holds.t

Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/V1/Hold.pm
api/v1/swagger/paths/holds.json
t/db_dependent/api/v1/holds.t