]> git.koha-community.org Git - koha.git/commit
Bug 33974: (follow-up) Adapt the orders endpoint
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 16 Jun 2023 15:53:05 +0000 (12:53 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Jul 2023 17:51:44 +0000 (14:51 -0300)
commitc07e43cf2afecfa6df0ba259187b90f567bc2603
treebd819c2f3396411baa4a8a7bd773c37c0f5f9f27
parent353f328ad3a99cc5a9ee913cd1f72a1d841705f2
Bug 33974: (follow-up) Adapt the orders endpoint

In order to reduce the technical debt carried on the orders controller,
and to highlight the decisions made on the prior patch, I adapted the
list() orders controller using the new tools in town.

The result is this endpoint can now embed bibio, without needing to have
a custom piece of code.

To test:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/*.t
=> SUCCESS: Tests pass :-D

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/REST/V1/Acquisitions/Orders.pm