chore: nelmio/apidocbundle and fos/restbundle integration

This commit is contained in:
2020-10-26 16:47:55 +01:00
parent 23586ca5d7
commit de1620931a
11 changed files with 1753 additions and 3 deletions

View File

@ -0,0 +1,15 @@
# Read the documentation: https://symfony.com/doc/master/bundles/FOSRestBundle/index.html
fos_rest: null
# param_fetcher_listener: true
# allowed_methods_listener: true
# routing_loader: true
# view:
# view_response_listener: true
# exception:
# codes:
# App\Exception\MyException: 403
# messages:
# App\Exception\MyException: Forbidden area.
# format_listener:
# rules:
# - { path: ^/api, prefer_extension: true, fallback_format: json, priorities: [ json, html ] }

View File

@ -0,0 +1,15 @@
nelmio_api_doc:
documentation:
info:
title: Janus
description: Service de gestion de profils dynamiques
version: 0.0.0
securityDefinitions:
Bearer:
type: apiKey
description: 'Value: Bearer {jwt}'
name: Authorization
in: header
areas: # to filter documented areas
path_patterns:
- ^/api(?!/doc(\.json)?$) # Accepts routes under /api except /api/doc

View File

@ -0,0 +1,2 @@
twig:
strict_variables: true

View File

@ -0,0 +1,5 @@
twig:
default_path: '%kernel.project_dir%/templates'
debug: '%kernel.debug%'
strict_variables: '%kernel.debug%'
exception_controller: null