Merge pull request #7464 from voltagex-forks/openapi-json

Enable Swagger JSON output in routing.yml
This commit is contained in:
Jérémy Benoist 2024-05-14 11:31:26 +02:00 committed by GitHub
commit a5a4a89829
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,11 @@ doc-api:
resource: "@NelmioApiDocBundle/config/routing/swaggerui.xml"
prefix: /api/doc
doc-api-json:
path: /api/doc.json
methods: GET
defaults: { _controller: nelmio_api_doc.controller.swagger }
homepage:
path: "/{page}"
defaults: