nelmio_api_doc.yaml 1.14 KB
Newer Older
Julien Jorry committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# nelmio_api_doc:
#     areas:
#         path_patterns: # an array of regexps
#             - ^/api(?!/doc$)
#         host_patterns:
#             - ^api\.
#     documentation:
#         host: api.example.com
#         schemes: [http, https]
#         info:
#             title: My App
#             description: This is an awesome app!
#             version: 1.0.0
#         securityDefinitions:
#             Bearer:
#                 type: apiKey
#                 description: 'Value: Bearer {jwt}'
#                 name: Authorization
#                 in: header
#         security:
#             - Bearer: []

nelmio_api_doc:
24
    # models: { use_jms: true }
Julien Jorry committed
25 26
    documentation:
        info:
27
            title: MLC
Julien Jorry committed
28 29
            description: Application de gesiton de Monnaie Locale Complémentaire
            version: 1.0.0
30 31 32 33 34 35 36
        security_definitions:
            api_key:
                type: apiKey
                name: api_key
                in: header
        security:
            api_key: []
Julien Jorry committed
37
    areas: # to filter documented areas
38 39 40 41
        path_patterns: # an array of regexps
            - ^/api(?!/doc$)
        # host_patterns:
        #     - ^api\.