[Koha-bugs] [Bug 21116] New: Add API routes through plugins
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jul 25 15:56:08 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21116
Bug ID: 21116
Summary: Add API routes through plugins
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: new feature
Priority: P5 - low
Component: REST api
Assignee: koha-bugs at lists.koha-community.org
Reporter: tomascohen at gmail.com
We should have a way to add routes using specially crafted plugins.
The plugins should provide the following methods to be considered valid
API-generating plugins:
- 'api_routes': returning the 'path' component of the OpenAPI specification
corresponding to the routes served by the plugin
- 'api_namespace': it should return a namespace to be used for grouping the
endpoints provided by the plugin
Plugin-generated routes will be placed inside /contrib/<namespace>, where
<namespace> is what the 'api_namespace' returns.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list