api_platform:
    title: 'FNAC - API'
    description: 'API FNAC'
    version: '1.0.0'
    enable_re_doc: true

    collection:
        pagination:
            page_parameter_name: 'page'
            enabled_parameter_name: 'pagination'
            items_per_page_parameter_name: 'itemsPerPage'

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

    # The list of your resources class directories. Defaults to the directories of the mapping paths but might differ.
    resource_class_directories:
        - '%kernel.project_dir%/src/Entity'
    swagger:
        # The active versions of OpenAPI to be exported or used in the swagger_ui. The first value is the default.
        versions: [3]
        api_keys:
            JWT:
                name: Authorization
                type: header
            ApiKeyAuth:
                name: x-api-key
                type: header
    openapi:
        # The contact information for the exposed API.
        contact:
            # The identifying name of the contact person/organization.
            name: Andrianirija Lafatra
            # The email address of the contact person/organization. MUST be in the format of an email address.
            email: andrianirijanyavo@gmail.com
        license:
            # The license name used for the API.
            name: FNAC
        swagger_ui_extra_configuration:
            docExpansion: full
            filter: true

    # The list of enabled formats. The first one will be the default.
    formats:
        json:
            mime_types: [ 'application/json' ]
        jsonld:
            mime_types: [ 'application/ld+json' ]

    patch_formats:
        json: [ 'application/json' ]

    eager_loading:
        max_joins: 60

    defaults:
        pagination_items_per_page: 30
        pagination_enabled: true
        pagination_client_enabled: true
        pagination_client_items_per_page: true