[Koha-bugs] [Bug 24228] Add a parameter to recursively embed objects in Koha::Object(s)->to_api
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Dec 21 00:03:26 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24228
--- Comment #1 from AgustÃn Moyano <agustinmoyano at theke.io> ---
Created attachment 96543
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96543&action=edit
Bug 24228: Add parameters to Koha::Object->to_api to automatically embed
objects
This patch adds the posibility to define 'x-koha-embed' parameter in swagger
and in request headers.
If 'x-koha-embed' header is present, in Koha::REST::V1::Auth it's compared with
the whitelist defined in swagger through the 'x-koha-embed' parameter, placed
at the same level of x-koha-authorization.
Whitelist should be composed of DBIC relations (optinally chained by '.') that
has the corresponding method in Koha::Object.
To test:
1. Apply this patch
2. prove t/db_dependent/Koha/Object.t
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list