Files
symfony-flex-recipes-contrib/nelmio/api-doc-bundle/3.0/config/routes/nelmio_api_doc.yaml
T
2018-01-04 16:39:32 +01:00

12 lines
334 B
YAML

# Requires the Asset component and the Twig bundle
app.swagger_ui:
path: /api/doc
methods: GET
defaults: { _controller: nelmio_api_doc.controller.swagger_ui }
# To expose your documentation as JSON
#app.swagger:
# path: /api/doc.json
# methods: GET
# defaults: { _controller: nelmio_api_doc.controller.swagger }