You are here

graphql.routing.yml in GraphQL 8.4

Same filename and directory in other branches
  1. 8 graphql.routing.yml
  2. 8.2 graphql.routing.yml
  3. 8.3 graphql.routing.yml

File

graphql.routing.yml
View source
  1. entity.graphql_server.collection:
  2. path: '/admin/config/graphql'
  3. defaults:
  4. _entity_list: 'graphql_server'
  5. _title: 'Servers'
  6. requirements:
  7. _permission: 'administer graphql configuration'
  8. options:
  9. _admin_route: TRUE
  10. entity.graphql_server.create_form:
  11. path: '/admin/config/graphql/servers/create'
  12. defaults:
  13. _entity_form: 'graphql_server.create'
  14. _title: 'Create'
  15. requirements:
  16. _permission: 'administer graphql configuration'
  17. options:
  18. _admin_route: TRUE
  19. entity.graphql_server.edit_form:
  20. path: '/admin/config/graphql/servers/manage/{graphql_server}'
  21. defaults:
  22. _entity_form: 'graphql_server.edit'
  23. _title: 'Edit'
  24. requirements:
  25. _permission: 'administer graphql configuration'
  26. options:
  27. _admin_route: TRUE
  28. entity.graphql_server.persisted_queries_form:
  29. path: '/admin/config/graphql/servers/manage/{graphql_server}/persisted_queries'
  30. defaults:
  31. _entity_form: 'graphql_server.persisted_queries'
  32. _title: 'Persisted queries'
  33. requirements:
  34. _permission: 'administer graphql configuration'
  35. options:
  36. _admin_route: TRUE
  37. graphql.explorer:
  38. path: '/admin/config/graphql/servers/manage/{graphql_server}/explorer'
  39. defaults:
  40. _controller: '\Drupal\graphql\Controller\ExplorerController::viewExplorer'
  41. _title: 'Explorer'
  42. requirements:
  43. _graphql_explorer_access: graphql_server:{graphql_server}
  44. options:
  45. _admin_route: TRUE
  46. parameters:
  47. server:
  48. type: entity:graphql_server
  49. graphql.voyager:
  50. path: '/admin/config/graphql/servers/manage/{graphql_server}/voyager'
  51. defaults:
  52. _controller: '\Drupal\graphql\Controller\VoyagerController::viewVoyager'
  53. _title: 'Voyager'
  54. requirements:
  55. _graphql_voyager_access: graphql_server:{graphql_server}
  56. options:
  57. _admin_route: TRUE
  58. parameters:
  59. graphql_server:
  60. type: entity:graphql_server
  61. graphql.validate:
  62. path: '/admin/config/graphql/servers/manage/{graphql_server}/validate'
  63. defaults:
  64. _controller: '\Drupal\graphql\Controller\ValidationController::report'
  65. _title: 'Validate GraphQL Server'
  66. requirements:
  67. _permission: 'administer graphql configuration'
  68. options:
  69. _admin_route: TRUE
  70. parameters:
  71. graphql_server:
  72. type: entity:graphql_server
  73. entity.graphql_server.delete_form:
  74. path: '/admin/config/graphql/servers/manage/{graphql_server}/delete'
  75. defaults:
  76. _entity_form: 'graphql_server.delete'
  77. _title: 'Delete'
  78. requirements:
  79. _permission: 'administer graphql configuration'
  80. options:
  81. _admin_route: TRUE
  82. route_callbacks:
  83. - graphql.route_provider::routes