Updated api platform recipe

This commit is contained in:
Jan Böhmer 2023-10-06 13:00:13 +02:00
parent f9cafae789
commit aaf230fc58
2 changed files with 12 additions and 4 deletions

View file

@ -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

View file

@ -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": {