Merge pull request #340

This commit is contained in:
symfony-flex-server[bot]
2018-04-17 07:04:33 +00:00
committed by GitHub
@@ -1,11 +1,12 @@
# Requires the Asset component and the Twig bundle
app.swagger_ui:
path: /api/doc
# Expose your documentation as JSON swagger compliant
app.swagger:
path: /api/doc.json
methods: GET
defaults: { _controller: nelmio_api_doc.controller.swagger_ui }
defaults: { _controller: nelmio_api_doc.controller.swagger }
# To expose your documentation as JSON
#app.swagger:
# path: /api/doc.json
## Requires the Asset component and the Twig bundle
## $ composer require composer require twig asset
#app.swagger_ui:
# path: /api/doc
# methods: GET
# defaults: { _controller: nelmio_api_doc.controller.swagger }
# defaults: { _controller: nelmio_api_doc.controller.swagger_ui }