diff --git a/nelmio/api-doc-bundle/3.0/config/packages/nelmio_api_doc.yaml b/nelmio/api-doc-bundle/3.0/config/packages/nelmio_api_doc.yaml new file mode 100644 index 00000000..59a3dc96 --- /dev/null +++ b/nelmio/api-doc-bundle/3.0/config/packages/nelmio_api_doc.yaml @@ -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 diff --git a/nelmio/api-doc-bundle/3.0/config/routes/nelmio_api_doc.yaml b/nelmio/api-doc-bundle/3.0/config/routes/nelmio_api_doc.yaml new file mode 100644 index 00000000..ba6d1437 --- /dev/null +++ b/nelmio/api-doc-bundle/3.0/config/routes/nelmio_api_doc.yaml @@ -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 } diff --git a/nelmio/api-doc-bundle/3.0/manifest.json b/nelmio/api-doc-bundle/3.0/manifest.json new file mode 100644 index 00000000..5eda2d4a --- /dev/null +++ b/nelmio/api-doc-bundle/3.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Nelmio\\ApiDocBundle\\NelmioApiDocBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +}