From 9b62504ed42a5c275bd8760c2490b5c4aa6da3b5 Mon Sep 17 00:00:00 2001 From: Hecht Date: Wed, 4 Oct 2023 15:17:03 +0200 Subject: [PATCH] Update API Platform --- config/packages/api_platform.yaml | 10 ++++++++++ symfony.lock | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 config/packages/api_platform.yaml diff --git a/config/packages/api_platform.yaml b/config/packages/api_platform.yaml new file mode 100644 index 0000000..41c7993 --- /dev/null +++ b/config/packages/api_platform.yaml @@ -0,0 +1,10 @@ +api_platform: + title: Hello API Platform + version: 1.0.0 + # Good defaults for REST APIs + defaults: + stateless: true + cache_headers: + vary: ['Content-Type', 'Authorization', 'Origin'] + extra_properties: + standard_put: true diff --git a/symfony.lock b/symfony.lock index 550a7cd..8846f0f 100644 --- a/symfony.lock +++ b/symfony.lock @@ -4,10 +4,11 @@ "recipe": { "repo": "github.com/symfony/recipes", "branch": "main", - "version": "3.0", - "ref": "0330386d716d3eecc52ee5ac66976e733eb8f961" + "version": "3.1", + "ref": "adf0c75f4bed8b0043a6680376323404953578c5" }, "files": [ + "config/packages/api_platform.yaml", "config/routes/api_platform.yaml", "src/ApiResource/.gitignore" ]