chore: nelmio/apidocbundle and fos/restbundle integration

This commit is contained in:
2020-10-26 16:47:55 +01:00
parent 23586ca5d7
commit de1620931a
11 changed files with 1753 additions and 3 deletions

View File

@ -0,0 +1,12 @@
# 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 }