ソースを参照

media type json

master
Daniel 1年前
コミット
1a1f0ced28
2個のファイルの変更1行の追加1行の削除
  1. +1
    -0
      httpdocs/config/packages/api_platform.yaml
  2. +0
    -1
      httpdocs/src/Filter/CustomJsonOrderFilter.php

+ 1
- 0
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']


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


読み込み中…
キャンセル
保存