[Koha-bugs] [Bug 30394] Add 'draw' handling to the datatables wrapper and REST API
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Mar 30 14:03:41 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30394
--- Comment #3 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 132578
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=132578&action=edit
Bug 30394: Add x-koha-request-id support on API routes
This patch adds the x-koha-request-id to all GET routes that rely on
objects.search, for immediate support for the header.
The patch itself is trivial:
- It adds the header parameter definition to the top level swagger.yaml
- It adds a reference on each route that already implements q params,
etc
To test:
1. Apply the patch
2. Reload plack
3. Notice the API still works
4. Run:
$ kshell
k$ prove t/db_dependent/api/v1/query.t
=> SUCCESS: It now passes! The /cities route implements the
x-koha-request-id header pass through.
5. Run the rest of the API tests
=> SUCCESS: All good
6. Sign off :-D
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list