Third-party bundle provide annotation which define rpc endpoints
-
Install it with composer
-
Create config/packages/devim_rpc_server.yaml
devim_rpc_server: classes: ~
-
Update config/routes.yaml
rpc: prefix: /json-rpc resource: '@DevimRpcServerBundle/Resources/config/routes.yaml'
-
dfdfd
-
Create controller with annotation JsonRpcApi
-
Create method with annotation JsonRpcMethod
-
Add controller's class to bundle configuration
devim_rpc_server: classes: - \App\Controller\FeedbackController
-
Send RPC request to application