api_platform.yaml 954 B

12345678910111213141516171819202122232425262728293031323334
  1. api_platform:
  2. title: 'SNC Demo API'
  3. version: '1.0'
  4. mapping:
  5. paths: ['%kernel.project_dir%/src/Entity']
  6. patch_formats:
  7. json: ['application/merge-patch+json']
  8. swagger:
  9. versions: [3]
  10. api_keys:
  11. apiKey:
  12. name: Authorization
  13. type: header
  14. enable_docs: true
  15. enable_swagger: true
  16. enable_swagger_ui: true
  17. formats:
  18. jsonld:
  19. mime_types: ['application/ld+json']
  20. json:
  21. mime_types: ['application/json']
  22. html:
  23. mime_types: ['text/html']
  24. docs_formats:
  25. jsonld: ['application/ld+json']
  26. jsonopenapi: ['application/vnd.openapi+json']
  27. html: ['text/html']
  28. defaults:
  29. stateless: true
  30. cache_headers:
  31. vary: ['Content-Type', 'Authorization', 'Origin']
  32. extra_properties:
  33. standard_put: true
  34. rfc_7807_compliant_errors: true