api_platform.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. graphiql:
  34. enabled: false
  35. use_symfony_listeners: true
  36. mercure:
  37. enabled: true
  38. messenger:
  39. enabled: true
  40. # To enable collecting denormalization errors