mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[Maintenance] Add json format support
This commit is contained in:
parent
af689ce657
commit
2b61e1991e
3 changed files with 5 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue