]> git.koha-community.org Git - koha.git/commit
Bug 35353: Add REST API endpoint to retrieve old holds
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 25 Mar 2024 15:42:18 +0000 (16:42 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 26 Apr 2024 16:06:09 +0000 (18:06 +0200)
commit7a32231a52d9d1d5007ad574b8e3b48fd4c99878
tree5bcee09b72b75287c1dc0226d4d63e64e94a64cf
parent6fb82fd6e32d0f38f24463c31adf546efe153bc3
Bug 35353: Add REST API endpoint to retrieve old holds

Same as checkout but for holds, we need to provide a way to retrieve old
holds for a patron.

Test plan:
Create some holds for a patron, cancel and fulfill some, then use the
REST API endpoint with the new 'old' flag set to 1
  /api/v1/patrons/42/holds?old=1

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/Hold.pm
Koha/Old/Hold.pm
Koha/REST/V1/Holds.pm
Koha/REST/V1/Patrons/Holds.pm
api/v1/swagger/definitions/hold.yaml
api/v1/swagger/paths/holds.yaml
api/v1/swagger/paths/patrons_holds.yaml
t/db_dependent/Koha/Hold.t
t/db_dependent/Koha/Old/Hold.t
t/db_dependent/api/v1/patrons_holds.t