api_platform.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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_items_per_page: 20
  20. normalization_context:
  21. ## In 3.0, in conformance with the JSON Merge Patch RFC, the default value of the skip_null_values
  22. ## property is true which means that from now on null values are omitted during serialization.
  23. ## we don't want this => surcharge default value to false
  24. skip_null_values: false
  25. graphql:
  26. graphql_playground: false
  27. use_symfony_listeners: true
  28. mercure:
  29. enabled: true
  30. messenger:
  31. enabled: true
  32. # To enable collecting denormalization errors