]> git.koha-community.org Git - koha.git/commit
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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 19 Mar 2019 10:51:44 +0000 (10:51 +0000)
commita6ff34be09f4d9271be6bf06a210b7fb7256590e
tree9ef814a8d578d9f70b1e8e6ff4abb6264b543597
parent1102aa5693d0b14389f682aac211a70bb7e6652c
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>
(cherry picked from commit 6067d2d49f790ab9ffead1381c571c14b0ba43ff)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/V1/Holds.pm