api_platform:
    collection:
        order_parameter_name: '_order' # the URL query parameter to use is now "_order"
    enable_fos_user: true
    enable_nelmio_api_doc: true
    graphql:
        graphiql:
            enabled: true

    mapping:
        paths: ['%kernel.project_dir%/src/Entity']

    swagger:
        api_keys:
             apiKey:
                name: Authorization
                type: header
        versions: [3]

    # The title of the API.
    title: 'Loger REST API'

    # The description of the API.
    description: 'Endpoint Swagger'

    # The version of the API.
    version: '1.0.0'
    oauth:
        # To enable or disable oauth.
        enabled: false

        # The oauth client id.
        clientId: ''

        # The oauth client secret.
        clientSecret: ''

        # The oauth type.
        type: 'oauth2'


        # The oauth flow grant type.
        flow: 'password'

        # The oauth token url.
        tokenUrl: '/oauth/v2/token'

        # The oauth authentication url.
        authorizationUrl: '/oauth/v2/auth'

        # The oauth scopes.
        scopes: ['read','write']
    # The list of enabled formats. The first one will be the default.
    formats:

        json:     ['application/json']
        jsonld:   ['application/ld+json']
        jsonhal:  ['application/hal+json']
        jsonapi:  ['application/vnd.api+json']
        xml:      ['application/xml', 'text/xml']
        yaml:     ['application/x-yaml']
        csv:      ['text/csv']
        html:     ['text/html']
        graphql: ['application/graphql']
    patch_formats:
        json:     ['application/merge-patch+json']
        jsonapi:  ['application/vnd.api+json']
    # The list of enabled error formats. The first one will be the default.
    error_formats:
        jsonproblem:                   ['application/problem+json']
        jsonld:                        ['application/ld+json']      # Hydra error formats
        jsonapi:                       ['application/vnd.api+json']
