Add NelmioApiDocBundle 3.0 support

This commit is contained in:
Guilhem Niot
2018-01-04 13:49:49 +01:00
parent 72b942fada
commit a176487881
3 changed files with 27 additions and 0 deletions
@@ -0,0 +1,9 @@
nelmio_api_doc:
documentation:
info:
title: My App
description: This is an awesome app!
version: 1.0.0
routes: # to filter documented routes
path_patterns:
- ^/api(?!/doc$) # Accepts routes under /api except /api/doc
@@ -0,0 +1,10 @@
# Requires the Asset component and the Twig bundle
app.swagger_ui:
path: /api/doc
methods: GET
defaults: { _controller: nelmio_api_doc.controller.swagger_ui }
# app.swagger:
# path: /api/doc.json
# methods: GET
# defaults: { _controller: nelmio_api_doc.controller.swagger }
+8
View File
@@ -0,0 +1,8 @@
{
"bundles": {
"Nelmio\\ApiDocBundle\\NelmioApiDocBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}