forked from wallabag/wallabag
Update to nelmio/api-doc 3.0
Convert ApiDoc to Swagger
This commit is contained in:
@ -131,11 +131,22 @@ fos_rest:
|
||||
- { path: '^/', priorities: ['text/html', '*/*'], fallback_format: html, prefer_extension: false }
|
||||
|
||||
nelmio_api_doc:
|
||||
sandbox:
|
||||
enabled: false
|
||||
cache:
|
||||
enabled: true
|
||||
name: wallabag API documentation
|
||||
areas:
|
||||
default:
|
||||
disable_default_routes: true
|
||||
documentation:
|
||||
info:
|
||||
title: wallabag API documentation
|
||||
description: This is the API documentation of wallabag
|
||||
version: 2.x
|
||||
securityDefinitions:
|
||||
Bearer:
|
||||
type: apiKey
|
||||
description: 'Value: Bearer {jwt}'
|
||||
name: Authorization
|
||||
in: header
|
||||
security:
|
||||
- Bearer: []
|
||||
|
||||
nelmio_cors:
|
||||
defaults:
|
||||
|
||||
@ -22,7 +22,7 @@ app:
|
||||
type: annotation
|
||||
|
||||
doc-api:
|
||||
resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
|
||||
resource: "@NelmioApiDocBundle/Resources/config/routing/swaggerui.xml"
|
||||
prefix: /api/doc
|
||||
|
||||
rest :
|
||||
|
||||
Reference in New Issue
Block a user