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"}}', ], ], ];