From acce35b31deda48a37591bfa0e70ef18b77a60e2 Mon Sep 17 00:00:00 2001 From: Vincent Chalamon <407859+vincentchalamon@users.noreply.github.com> Date: Tue, 3 Oct 2023 14:26:58 +0200 Subject: [PATCH] chore: update from standard edition --- api/config/packages/api_platform.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/api/config/packages/api_platform.yaml b/api/config/packages/api_platform.yaml index 10f5450c2..a3aeadbf5 100644 --- a/api/config/packages/api_platform.yaml +++ b/api/config/packages/api_platform.yaml @@ -6,15 +6,20 @@ api_platform: [Its source code](https://github.com/api-platform/demo) includes various examples, check it out! You may also be interested by [the GraphQL entrypoint](/graphql). [A PWA](/) and [an admin](/admin) are consuming this API. + # Mercure integration, remove if unwanted + mercure: ~ graphql: graphql_playground: false formats: jsonld: ['application/ld+json'] json: ['application/json'] + docs_formats: + jsonld: ['application/ld+json'] + jsonopenapi: ['application/vnd.openapi+json'] html: ['text/html'] - mercure: ~ http_cache: public: true + # Good defaults for REST APIs defaults: stateless: true cache_headers: @@ -23,6 +28,7 @@ api_platform: standard_put: true rfc_7807_compliant_errors: true event_listeners_backward_compatibility_layer: false + keep_legacy_inflector: false oauth: enabled: true clientId: '%env(OIDC_SWAGGER_CLIENT_ID)%'