api_platform.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. api_platform:
  2. title: 'Opentalent API'
  3. version: '2.5'
  4. enable_docs: true
  5. enable_swagger: true
  6. enable_swagger_ui: true
  7. mapping:
  8. paths:
  9. - '%kernel.project_dir%/src/Entity'
  10. - '%kernel.project_dir%/src/ApiResources'
  11. - '%kernel.project_dir%/config/api_platform'
  12. patch_formats:
  13. json: ['application/merge-patch+json']
  14. swagger:
  15. versions: [3]
  16. resource_class_directories:
  17. - '%kernel.project_dir%/src/Entity'
  18. defaults:
  19. pagination_enabled: true
  20. pagination_items_per_page: 20
  21. pagination_maximum_items_per_page: 50
  22. pagination_client_enabled: true
  23. pagination_client_items_per_page: true
  24. normalization_context:
  25. ## In 3.0, in conformance with the JSON Merge Patch RFC, the default value of the skip_null_values
  26. ## property is true which means that from now on null values are omitted during serialization.
  27. ## we don't want this => surcharge default value to false
  28. skip_null_values: false
  29. formats:
  30. jsonld: [ 'application/ld+json' ]
  31. json: [ 'application/json' ]
  32. graphql:
  33. graphql_playground: false
  34. use_symfony_listeners: true
  35. mercure:
  36. enabled: true
  37. messenger:
  38. enabled: true
  39. # To enable collecting denormalization errors