mirror of
https://framagit.org/tykayn/date-poll-api
synced 2023-08-25 08:23:11 +02:00
13 lines
383 B
YAML
13 lines
383 B
YAML
|
# 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 }
|