[api-platform/core] sane defaults for API Platform 3.2 (#1240)

This commit is contained in:
Antoine Bluchet
2023-09-19 12:29:18 +02:00
committed by GitHub
parent df1203b89a
commit a5c8679c45
5 changed files with 41 additions and 0 deletions
@@ -0,0 +1,18 @@
api_platform:
title: Hello API Platform
version: 1.0.0
formats:
jsonld: ['application/ld+json']
doc_formats:
jsonld: ['application/ld+json']
jsonopenapi: ['application/vnd.openapi+json']
html: ['text/html']
defaults:
stateless: true
cache_headers:
vary: ['Content-Type', 'Authorization', 'Origin']
extra_properties:
standard_put: true
rfc_7807_compliant_errors: true
event_listeners_backward_compatibility_layer: false
keep_legacy_inflector: false
@@ -0,0 +1,4 @@
api_platform:
resource: .
type: api_platform
prefix: /api