You are here

services.routing.yml in Services 9.0.x

Same filename and directory in other branches
  1. 8.4 services.routing.yml

File

services.routing.yml
View source
  1. # ServiceEndpoint routing definition
  2. entity.service_endpoint.collection:
  3. path: '/admin/structure/service_endpoint'
  4. defaults:
  5. _entity_list: 'service_endpoint'
  6. _title: 'Services'
  7. requirements:
  8. _permission: 'manage services'
  9. entity.service_endpoint.add_form:
  10. path: '/admin/structure/service_endpoint/add'
  11. defaults:
  12. _entity_form: 'service_endpoint.add'
  13. _title: 'Add services endpoint'
  14. requirements:
  15. _permission: 'manage services'
  16. entity.service_endpoint.edit_form:
  17. path: '/admin/structure/service_endpoint/{service_endpoint}'
  18. defaults:
  19. _entity_form: 'service_endpoint.edit'
  20. _title: 'Edit services endpoint'
  21. requirements:
  22. _permission: 'manage services'
  23. entity.service_endpoint.delete_form:
  24. path: '/admin/structure/service_endpoint/{service_endpoint}/delete'
  25. defaults:
  26. _entity_form: 'service_endpoint.delete'
  27. _title: 'Delete services endpoint'
  28. requirements:
  29. _permission: 'manage services'
  30. entity.service_endpoint.resources:
  31. path: '/admin/structure/service_endpoint/{service_endpoint}/resources'
  32. defaults:
  33. _title: 'Service resources'
  34. _controller: \Drupal\services\Controller\ServiceEndpointResources::displayList
  35. requirements:
  36. _permission: 'manage services'
  37. options:
  38. parameters:
  39. service_endpoint:
  40. type: entity:service_endpoint
  41. entity.service_endpoint_resource.config_form:
  42. path: '/admin/structure/service_endpoint/{service_endpoint}/resource/{plugin_id}'
  43. defaults:
  44. _title: 'Configure resource'
  45. _entity_form: 'service_endpoint_resource.config'
  46. requirements:
  47. _permission: 'manage services'
  48. options:
  49. parameters:
  50. service_endpoint:
  51. type: entity:service_endpoint
  52. entity.service_endpoint_resource.delete_form:
  53. path: '/admin/structure/service_endpoint/{service_endpoint}/resource/{plugin_id}/delete'
  54. defaults:
  55. _title: 'Delete resource'
  56. _entity_form: 'service_endpoint_resource.delete'
  57. requirements:
  58. _permission: 'manage services'
  59. options:
  60. parameters:
  61. service_endpoint:
  62. type: entity:service_endpoint
  63. services.csrf_token:
  64. path: '/services/session/token'
  65. defaults:
  66. _controller: '\Drupal\services\Controller\Services::csrfToken'
  67. requirements:
  68. _access: 'TRUE'
  69. services.settings:
  70. path: '/admin/structure/service_endpoint/settings'
  71. defaults:
  72. _title: 'Service settings'
  73. _form: '\Drupal\services\Form\ServiceSettingsForm'
  74. requirements:
  75. _permission: 'manage services'
  76. route_callbacks:
  77. - '\Drupal\services\Routing\ServiceEndpoint::routes'