diff --git a/config/packages/api_platform.yaml b/config/packages/api_platform.yaml index 9bc2168c..e5e6df3a 100644 --- a/config/packages/api_platform.yaml +++ b/config/packages/api_platform.yaml @@ -1,14 +1,18 @@ api_platform: - title: 'Part-DB API' description: 'API of Part-DB' - version: '0.1.0' -# eager_loading: -# max_joins: 100 + formats: + jsonld: ['application/ld+json'] + json: ['application/json'] + jsonapi: ['application/vnd.api+json'] - keep_legacy_inflector: false + docs_formats: + jsonld: ['application/ld+json'] + jsonopenapi: ['application/vnd.openapi+json'] + html: ['text/html'] + json: ['application/vnd.openapi+json'] swagger: api_keys: @@ -24,5 +28,9 @@ api_platform: vary: ['Content-Type', 'Authorization', 'Origin'] extra_properties: standard_put: true + rfc_7807_compliant_errors: true - pagination_client_items_per_page: true # Allow clients to override the default items per page \ No newline at end of file + pagination_client_items_per_page: true # Allow clients to override the default items per page + + keep_legacy_inflector: false + event_listeners_backward_compatibility_layer: false \ No newline at end of file diff --git a/symfony.lock b/symfony.lock index 72f5ec4d..b1fe2558 100644 --- a/symfony.lock +++ b/symfony.lock @@ -6,12 +6,12 @@ "version": "v1.6.1" }, "api-platform/core": { - "version": "3.1", + "version": "3.2", "recipe": { "repo": "github.com/symfony/recipes", "branch": "main", - "version": "3.1", - "ref": "adf0c75f4bed8b0043a6680376323404953578c5" + "version": "3.2", + "ref": "696d44adc3c0d4f5d25a2f1c4f3700dd8a5c6db9" }, "files": [ "config/packages/api_platform.yaml",