[Koha-bugs] [Bug 24302] Add a way to specify nested objects to embed in OpenAPI
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Dec 26 13:00:50 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24302
Tomás Cohen Arazi <tomascohen at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #96624|0 |1
is obsolete| |
--- Comment #3 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 96639
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96639&action=edit
Bug 24302: Add a way to specify nested objects to embed in OpenAPI
This patch introduces a helper for handling x-koha-embed headers on API
requests. It reads the embed definitions and adds them to the stash for
later use (either manually on the controllers, or in the objects.search
helper.
x-koha-embed needs to be defined as a list on the OpenAPI spec.
It throws an exception when invalid combinations are found.
To test:
1. Apply this patch
2. Run:
$ kshell
k$ prove t/Koha/REST/Plugin/Query.t
=> SUCCESS: Tests pass!
3.Sign off :-D
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list