mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 23:56:29 +03:00
53 lines
2.1 KiB
JSON
53 lines
2.1 KiB
JSON
{
|
|
"manifests": {
|
|
"nelmio/api-doc-bundle": {
|
|
"manifest": {
|
|
"bundles": {
|
|
"Nelmio\\ApiDocBundle\\NelmioApiDocBundle": [
|
|
"all"
|
|
]
|
|
},
|
|
"copy-from-recipe": {
|
|
"config/": "%CONFIG_DIR%/"
|
|
}
|
|
},
|
|
"files": {
|
|
"config/packages/nelmio_api_doc.yaml": {
|
|
"contents": [
|
|
"nelmio_api_doc:",
|
|
" documentation:",
|
|
" info:",
|
|
" title: My App",
|
|
" description: This is an awesome app!",
|
|
" version: 1.0.0",
|
|
" areas: # to filter documented areas",
|
|
" path_patterns:",
|
|
" - ^/api(?!/doc$) # Accepts routes under /api except /api/doc",
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"config/routes/nelmio_api_doc.yaml": {
|
|
"contents": [
|
|
"# 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 }",
|
|
""
|
|
],
|
|
"executable": false
|
|
}
|
|
},
|
|
"ref": "c8e0c38e1a280ab9e37587a8fa32b251d5bc1c94"
|
|
}
|
|
}
|
|
}
|