2022-02-09 09:55:14 +01:00
|
|
|
# Expose your documentation as JSON swagger compliant
|
2022-02-21 09:36:27 +01:00
|
|
|
app_swagger_ui:
|
|
|
|
path: /rest
|
2022-02-09 09:55:14 +01:00
|
|
|
methods: GET
|
2022-02-21 09:36:27 +01:00
|
|
|
defaults: { _controller: nelmio_api_doc.controller.swagger_ui }
|
2022-02-09 09:55:14 +01:00
|
|
|
|
|
|
|
## 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 }
|