[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 Jan 2 15:37:25 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24302

--- Comment #6 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 96756
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96756&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