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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 17 Jul 2023 15:25:44 +0000 (16:25 +0100)
commit944c6939251906542f2d8aeebb01a3af210173f6
tree3742fcbde7826d005d15351149fbda3f7d6c4d35
parent21ebede0de667f2e17d6935920c8b9cebd16b880
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>
(cherry picked from commit c07e43cf2afecfa6df0ba259187b90f567bc2603)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/V1/Acquisitions/Orders.pm