mise en place d'un controleur REST

This commit is contained in:
afornerot
2022-02-14 09:59:14 +01:00
parent 0ba36598fa
commit 3edae845f0
6 changed files with 154 additions and 30 deletions

View File

@@ -1,12 +1,4 @@
# Expose your documentation as JSON swagger compliant
app.swagger:
path: /api/doc.json
app_swagger_ui:
path: /rest
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 }
defaults: { _controller: nelmio_api_doc.controller.swagger_ui }