api_platform.yaml 676 B

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