You are here

jsonrpc_discovery.routing.yml in JSON-RPC 8

Same filename and directory in other branches
  1. 2.x modules/jsonrpc_discovery/jsonrpc_discovery.routing.yml
modules/jsonrpc_discovery/jsonrpc_discovery.routing.yml

File

modules/jsonrpc_discovery/jsonrpc_discovery.routing.yml
View source
  1. jsonrpc.method_collection:
  2. path: '/jsonrpc/methods'
  3. defaults:
  4. _controller: '\Drupal\jsonrpc_discovery\Controller\DiscoveryController::methods'
  5. methods: [GET]
  6. requirements:
  7. _permission: 'use jsonrpc services'
  8. options:
  9. _auth: ['cookie', 'basic_auth', 'oauth2']
  10. jsonrpc.method_resource:
  11. path: '/jsonrpc/methods/{method_id}'
  12. defaults:
  13. _controller: '\Drupal\jsonrpc_discovery\Controller\DiscoveryController::method'
  14. methods: [GET]
  15. requirements:
  16. _permission: 'use jsonrpc services'
  17. options:
  18. _auth: ['cookie', 'basic_auth', 'oauth2']