From aaf230fc58959c32900a5ceb69ae307fa656dd4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Fri, 6 Oct 2023 13:00:13 +0200 Subject: [PATCH] Updated api platform recipe --- config/packages/api_platform.yaml | 7 +++++++ symfony.lock | 9 +++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/config/packages/api_platform.yaml b/config/packages/api_platform.yaml index e304a134..b53cc7e0 100644 --- a/config/packages/api_platform.yaml +++ b/config/packages/api_platform.yaml @@ -16,4 +16,11 @@ api_platform: type: header defaults: + # TODO: Change this to true later. In the moment it is false, because we use the session in somewhere + stateless: false + cache_headers: + vary: ['Content-Type', 'Authorization', 'Origin'] + extra_properties: + standard_put: true + pagination_client_items_per_page: true # Allow clients to override the default items per page \ No newline at end of file diff --git a/symfony.lock b/symfony.lock index 3831aa60..cf62fc25 100644 --- a/symfony.lock +++ b/symfony.lock @@ -10,12 +10,13 @@ "recipe": { "repo": "github.com/symfony/recipes", "branch": "main", - "version": "3.0", - "ref": "0330386d716d3eecc52ee5ac66976e733eb8f961" + "version": "3.1", + "ref": "adf0c75f4bed8b0043a6680376323404953578c5" }, "files": [ - "./config/routes/api_platform.yaml", - "./src/ApiResource/.gitignore" + "config/packages/api_platform.yaml", + "config/routes/api_platform.yaml", + "src/ApiResource/.gitignore" ] }, "beberlei/assert": {