api_platform.yaml 674 B

12345678910111213141516171819202122
  1. api_platform:
  2. title: Hello API Platform
  3. version: 1.0.0
  4. formats:
  5. jsonld: ['application/ld+json']
  6. docs_formats:
  7. jsonld: ['application/ld+json']
  8. jsonopenapi: ['application/vnd.openapi+json']
  9. html: ['text/html']
  10. defaults:
  11. stateless: true
  12. cache_headers:
  13. vary: ['Content-Type', 'Authorization', 'Origin']
  14. extra_properties:
  15. standard_put: true
  16. rfc_7807_compliant_errors: true
  17. keep_legacy_inflector: false
  18. use_symfony_listeners: true
  19. mapping:
  20. paths:
  21. - '%kernel.project_dir%/src/Entity'
  22. - '%kernel.project_dir%/src/ApiResource'