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