mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-15 17:16:29 +03:00
Merge pull request #226
This commit is contained in:
@@ -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 }
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Nelmio\\ApiDocBundle\\NelmioApiDocBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user