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" ]