Required SPARQUE Desk API Result Description
SPARQUE allows you to customize the output format of your endpoints by using result descriptions, see Result Description for details.
However, the Wrapper requires certain information to be included in the responses. An OpenAPI specification of the expected data model is available here:
Array Aggregation
Since SPARQUE allows you to freely model your data, there may be multiple values for the same attribute. In such cases, SPARQUE Desk will respond with an array. However, the Wrapper is not designed to handle arrays. To avoid this situation, set aggr
to MOST_FREQUENT
.
{
"class": "http://sparque.ai/SortingOption",
"level": 1,
"mode": "full",
"attributes": [
{
"name": "identifier",
"type": "STRING",
"aggr": "most_frequent"
"splitLanguages": true
},
{
"name": "title",
"type": "STRING",
"aggr": "most_frequent"
}
],