Skip to content

Commit

Permalink
Add json format support
Browse files Browse the repository at this point in the history
  • Loading branch information
mpysiak committed Oct 22, 2024
1 parent b104723 commit d34ee3b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"ext-intl": "*",
"ext-json": "*",
"ext-simplexml": "*",
"api-platform/core": "^3.4.2",
"babdev/pagerfanta-bundle": "^3.7 || ^4.0",
"api-platform/core": "^4.0.0",
"behat/transliterator": "^1.3",
Expand Down
3 changes: 3 additions & 0 deletions src/Sylius/Bundle/ApiBundle/Resources/config/app/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Sylius/Bundle/ApiBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"require": {
"php": "^8.2",
"doctrine/dbal": "^3.0",
"api-platform/core": "^3.4.2",
"api-platform/core": "^4.0.0",
"enshrined/svg-sanitize": "^0.16",
"lexik/jwt-authentication-bundle": "^2.11",
"sylius/core-bundle": "^2.0",
Expand Down

0 comments on commit d34ee3b

Please sign in to comment.