jsonrpc.routing.yml in JSON-RPC 2.x
Same filename and directory in other branches
5 string references to YAML keys in jsonrpc.routing.yml
- DiscoveryController::create in modules/
jsonrpc_discovery/ src/ Controller/ DiscoveryController.php - Instantiates a new instance of this class.
- HttpController::__construct in src/
Controller/ HttpController.php - HttpController constructor.
- JsonRpcOptionsRequestSubscriber::onRequest in src/
Routing/ JsonRpcOptionsRequestSubscriber.php - Tries to handle the options request.
- JsonRpcTestBase::getRpc in tests/
src/ Functional/ JsonRpcTestBase.php - JSON RPC request using the GET method.
- JsonRpcTestBase::postRpc in tests/
src/ Functional/ JsonRpcTestBase.php - Post a request in JSON format.
File
jsonrpc.routing.ymlView source
- jsonrpc.handler:
- path: '/jsonrpc'
- defaults:
- _controller: '\Drupal\jsonrpc\Controller\HttpController::resolve'
- methods: [POST, GET, OPTIONS]
- requirements:
- _permission: 'use jsonrpc services'
- options:
- _auth: ['basic_auth', 'oauth2']