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 Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> |
||
|---|---|---|
| .. | ||
| Authority | ||
| I18N/po/xx_XX/LC_MESSAGES | ||
| Plugins | ||
| REST/Plugin | ||
| SearchEngine | ||
| Util | ||
| Config.t | ||
| Exceptions.t | ||
| I18N.t | ||
| ItemType.t | ||
| RDF.t | ||
| Script.t | ||
| Script_cron.t | ||
| Z3950responder.t | ||