mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 11:00:40 +08:00
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:
parent
6dda8a5fe6
commit
e8f9b18418
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue