Move api documentation to /docs

- Enable swagger docs
- Disable re-doc
- Move rest docs path to /docs/rest
- Move graphql docs path to /docs/graphql
This commit is contained in:
Clemente Raposo 2021-03-11 10:46:39 +00:00 committed by Dillon-Brown
parent 6dda8a5fe6
commit e8f9b18418
2 changed files with 10 additions and 1 deletions

View file

@ -37,7 +37,8 @@ api_platform:
# The oauth scopes.
scopes: []
enable_swagger_ui: false
enable_swagger_ui: true
enable_re_doc: false
# Specify a path name generator to use.
path_segment_name_generator: api_platform.path_segment_name_generator.dash

View file

@ -2,3 +2,11 @@ api_platform:
resource: .
type: api_platform
prefix: /api
swagger_ui:
path: /docs/rest
controller: api_platform.swagger.action.ui
graphiql:
path: /docs/graphql
controller: api_platform.graphql.action.graphiql