-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow plugins to add/modify API endpoints of existing entity #9434
Comments
@asmecher can you please preview the PR at #9434 (comment) |
Thanks, @touhidurabir! I added a review: #9451 (review) |
@asmecher can you take a look at the PRs at #9434 (comment) |
@asmecher All tests have passed so should be good to merge . |
* #9434 Allow plugin level API call * #9434 Updated hook call and fixed handler related bug * #9434 removed misplaced reference of old SessionManager * #9434 added ability to generate routes via closure and plugin level api url * #9434 removed plugin level api ability * #9434 typo and retuen type fixed * #9434 minor fixes and removed unused translation * #9434 replaced PKPContainder::getInstance() with app()
Merged for |
@asmecher we don't need to back port it to |
Closing this as this does not need back porting . |
Describe the problem
With the merge of #7698 in the
main branch(Future 3.5.0 LTS)
, slim routing toolset set has been removed as one of the core dependency and the API implementation moved to laravel routing toolset completely . This has made the previously applied hookAPIHandler::endpoints
to tap into and modify/add/update obsolete and removed .Describe the proposal
Possible enhancement is to bring back the hook similar kind of hook
APIHandler::endpoints
to allow dynamic insertion of API routes on run time using laravel router which oversees the each routing process . This will be helpful for plugins to inject routes to any existing routes collection .What application are you using?
OJS, OMP or OPS version
main
PRs
pkp-lib --> #9451
ojs --> pkp/ojs#4081 [TEST ONLY]
omp --> pkp/omp#1625 [TEST ONLY]
ops --> pkp/ops#724 [TEST ONLY]
An example plugin to demonstrate the usage of plugin level api implementation at https://github.com/touhidurabir/apiExample
Additional Information
Feature request : https://forum.pkp.sfu.ca/t/create-custom-api-handler-ver-3-5/89101/4
The text was updated successfully, but these errors were encountered: