You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
379 B
12 lines
379 B
# Expose your documentation as JSON swagger compliant
|
|
app.swagger:
|
|
path: /api/doc.json
|
|
methods: GET
|
|
defaults: { _controller: nelmio_api_doc.controller.swagger }
|
|
|
|
## Requires the Asset component and the Twig bundle
|
|
## $ composer require twig asset
|
|
app.swagger_ui:
|
|
path: /api/doc
|
|
methods: GET
|
|
defaults: { _controller: nelmio_api_doc.controller.swagger_ui }
|