From 1a1f0ced28ec4e9801aac49218bf4666c47aa729 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 18 Dec 2024 11:18:54 +0100 Subject: [PATCH] media type json --- httpdocs/config/packages/api_platform.yaml | 1 + httpdocs/src/Filter/CustomJsonOrderFilter.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/httpdocs/config/packages/api_platform.yaml b/httpdocs/config/packages/api_platform.yaml index fb47185..ac01b9f 100644 --- a/httpdocs/config/packages/api_platform.yaml +++ b/httpdocs/config/packages/api_platform.yaml @@ -2,6 +2,7 @@ api_platform: title: Imaq Platform version: 1.0.0 formats: + json: [ 'application/json' ] jsonld: ['application/ld+json'] docs_formats: jsonld: ['application/ld+json'] diff --git a/httpdocs/src/Filter/CustomJsonOrderFilter.php b/httpdocs/src/Filter/CustomJsonOrderFilter.php index 01f8778..43f381f 100644 --- a/httpdocs/src/Filter/CustomJsonOrderFilter.php +++ b/httpdocs/src/Filter/CustomJsonOrderFilter.php @@ -128,7 +128,6 @@ class CustomJsonOrderFilter extends AbstractFilter 'description' => 'Order by a specific field, optionally on nested sub-resources or by count of sub-resources. Format: { "active": "fieldName", "direction": "asc|desc", "listColDefinition": { "field": "fieldName", "sortingFieldName": "sortFieldName", "sortingSubResource": "subResource", "countSortSubresource": true, "countSortSubresourceValue": "value" or ["value1", "!value2"], "countSortSubresourceField": "fieldToCompare", "countSortFilterSubResource": "subResource", "countSortFilterSubresourceField": "field", "countSortFilterSubresourceValue": "value" } }', 'name' => 'custom_order', 'type' => 'string', - 'example' => '{"active":"cntSoldItems","direction":"desc","listColDefinition":{"field":"cntSoldItems","sortingSubResource":"tradePileItems","countSortSubresource":true,"countSortSubresourceValue":["closed"],"countSortSubresourceField":"tradeState","countSortFilterSubResource":"account","countSortFilterSubresourceField":"tmOpen","countSortFilterSubresourceValue":"0"}}', ], ], ];