[Maintenance] Add json format support

This commit is contained in:
Michał Pysiak 2024-10-22 13:07:30 +02:00
parent af689ce657
commit 2b61e1991e
No known key found for this signature in database
GPG key ID: 9C1F2D0F99830187
3 changed files with 5 additions and 2 deletions

View file

@ -30,7 +30,7 @@
"ext-intl": "*",
"ext-json": "*",
"ext-simplexml": "*",
"api-platform/core": "^3.4.2",
"api-platform/core": "^4.0.0",
"babdev/pagerfanta-bundle": "^4.4",
"behat/transliterator": "^1.5",
"doctrine/collections": "^2.2",

View file

@ -34,6 +34,9 @@ api_platform:
serializer:
hydra_prefix: true
use_symfony_listeners: true
formats:
jsonld: ['application/ld+json']
json: ['application/json']
patch_formats:
json: ['application/merge-patch+json']
path_segment_name_generator: api_platform.path_segment_name_generator.dash

View file

@ -25,7 +25,7 @@
"require": {
"php": "^8.2",
"doctrine/dbal": "^3.9",
"api-platform/core": "^3.4.2",
"api-platform/core": "^4.0.0",
"enshrined/svg-sanitize": "^0.20",
"lexik/jwt-authentication-bundle": "^3.1",
"sylius/core-bundle": "^2.0",