]> 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)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 15 Mar 2019 19:35:26 +0000 (19:35 +0000)
commitfc0d64506d75bde53afa3a3385a7f7f42bd566bc
tree55fff620345f0e0849dfa2b8c0008ac57b82703c
parent52bb9802dda6f6bb3619cc6d8e921ecd8175c8ce
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>
Koha/REST/V1/Hold.pm