]> git.koha-community.org Git - koha.git/commit
Bug 20006: Adapt /holds to the RFC
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 24 Jan 2019 17:53:30 +0000 (14:53 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 19 Mar 2019 10:51:25 +0000 (10:51 +0000)
commitc0b46677c64da72f68e92f4d5501cb8fe073c0a5
treeac323e0cea82575edb320d3a231822a6018eeae9
parent641f61d84b02fcf4b9efb8d745d82cf5f25022e8
Bug 20006: Adapt /holds to the RFC

This patch makes the /holds endpoint respect the voted RFC. Some
behaviours are changed as well:

- As we voted to introduce a /public namespace for unprivileged access to
endpoints, this endpoint gets the ability for owners and guarantors to
manipulate holds through the API.

- GET /holds now uses the objects->search helper, so it now has
pagination.

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: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit fc0d64506d75bde53afa3a3385a7f7f42bd566bc)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/V1/Hold.pm