api_platform:
  #swagger version
  swagger:
    versions: [3]
    api_keys:
      JWT:
        name: Authorization
        type: header
    swagger_ui_extra_configuration:
      filter: false
  #doc settings
  show_webby: false
  title: Vycab API
  version: 1.0.0
  description: "VYCAB, a modern and highly qualified company in the operation of cars with driver"
  openapi:
    contact:
    #   name: FOCUS Agency
    #   url: https://www.fcpo.ma/
    #   email: mohammedbenseghir.online@gmail.com

  formats:
    jsonld: ["application/ld+json"]
    html: ["text/html"]
    jsonapi: [application/vnd.api+json]
    json: ['application/json', 'multipart/form-data']
  docs_formats:
    jsonld: ['application/ld+json']
    json: ['application/json', 'multipart/form-data']
    jsonopenapi: ['application/vnd.openapi+json']
    html: ['text/html']

  #pagination
  collection:
    pagination:
      items_per_page_parameter_name: 'items_per_page'
    exists_parameter_name: "not_null"
  defaults:
    order: { id: 'DESC' }
    stateless: true
    http_cache: true
    enable_max_depth: true
    eager_loading:
        max_joins: 2000
        force_eager: false
    cache_headers:
      #   max_age: 3600
      #   shared_max_age: 3600
      vary: ["Content-Type", "Authorization", "Origin", "etag"]

    pagination_maximum_items_per_page: 50
    pagination_client_items_per_page: true
    pagination_items_per_page: 30
    pagination_client_enabled: true
framework:
    validation: { enabled: true }
