Bug 38745

Summary: Add a proof of concept JSON-RPC driven endpoint for RPC style calls that don't fit REST ideals
Product: Koha Reporter: Martin Renvoize (ashimema) <martin.renvoize>
Component: Web servicesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: dcook, martin.renvoize
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30652
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38226
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 38745: Add RPC Router
Bug 38745: Start adding a populate_empty_callnumbers RPC method

Description Martin Renvoize (ashimema) 2024-12-18 17:06:44 UTC
We have a few places where RPC style calls to perform various actions makes sense.. thinking 'bulk' actions and also 'test' actions for things like the sftp connection checks

I propose a distinct /rpc endpoint with a basic router built into the endpoint and oneOf being used to specify using the existing OpenAPI specifications.
Comment 1 Martin Renvoize (ashimema) 2024-12-20 13:44:41 UTC
Created attachment 175843 [details] [review]
Bug 38745: Add RPC Router

This patch add an RPC controller under the REST API to act as a router
for JSON-RPC 2.0 syle requests.
Comment 2 Martin Renvoize (ashimema) 2024-12-20 13:44:43 UTC
Created attachment 175844 [details] [review]
Bug 38745: Start adding a populate_empty_callnumbers RPC method

This patch takes the populate_empty_callnumbers method as proposed on
bug 38226 and modifies it for json-rpc expectations.
Comment 3 Martin Renvoize (ashimema) 2024-12-20 13:45:12 UTC
Very much a proof of concept for code and not usable yet