Bug 22206: Add routes to suspend/resume holds
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 28 Jan 2019 10:40:15 +0000 (07:40 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 15 Mar 2019 19:35:30 +0000 (19:35 +0000)
commit6067d2d49f790ab9ffead1381c571c14b0ba43ff
treea8d2991a3a20d9b9c57bd677ba295d052f2ce652
parentbcc150a9c05c1de4fe2fc5e07a5469f90d48953c
Bug 22206: Add routes to suspend/resume holds

This patch introduces:

- POST   /holds/{hold_id}/suspension { "expiration_date": "2019-01-30" }
- DELETE /holds/{hold_id}/suspension

to suspend a hold or resume a suspended hold, respectively.

To test:
- Apply this patches
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/holds.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/REST/V1/Holds.pm