Merge pull request #226

This commit is contained in:
symfony-flex-server[bot]
2018-01-04 17:17:21 +00:00
committed by GitHub
3 changed files with 28 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,11 @@
# Requires the Asset component and the Twig bundle
app.swagger_ui:
path: /api/doc
methods: GET
defaults: { _controller: nelmio_api_doc.controller.swagger_ui }
# To expose your documentation as JSON
#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%/"
}
}