You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 6
Next »
/api/dataSets/:id/attributes/:code/subsets/:sid
Lists subsets for the given data set ID and attribute code.
Resource URL | https://service.belladati.com/api/dataSets/:id/attributes/:code/subsets/:sid |
---|
HTTP Method | GET
|
---|
Request Parameters
id | Data Set identifier. You can find the ID in the response to /api/dataSets . | 123 |
code | Attribute code. You can find the code in the response to /api/dataSets/:id . | L_STATE |
sid | ID of the subset | xELCQrxs09 |
Response Structure
JSON response contains an object with the following definition:
name | name of the subsets |
id | id of the subset |
subsetValues | array of subset values. Each subset value has following definition: id | ID of the subset value | value | The value can be an attribute member or custom member | negativeValue | Boolean parameter defining if a negative value should be used when calculating the value of parent in a nested subset. | drillDownDisabled | Boolean parameter defining if the drill-down functionality is enabled or disabled in a nested subset. | children | Optional An array of subset values which are children of this subset value |
|
Sample Request / Response
Using curl
:
The JSON format response:
{
"subsetValues": [
{
"drillDownDisabled": "true",
"children": [
{
"drillDownDisabled": "true",
"negativeValue": "true",
"id": "DTfr7DGqqM",
"value": "Tea"
}
],
"negativeValue": "false",
"id": "T9yI2XwdWV",
"value": "Coffee"
},
{
"drillDownDisabled": "false",
"negativeValue": "false",
"id": "PUcyY5Rzt3",
"value": "Espresso"
},
{
"drillDownDisabled": "false",
"negativeValue": "false",
"id": "wj0JZdihSR",
"value": "@cm=bfqJgOVzcl"
},
{
"drillDownDisabled": "false",
"children": [
{
"drillDownDisabled": "false",
"negativeValue": "false",
"id": "Tr9YXLMtiy",
"value": "@cm=bfqJgOVzcl"
},
{
"drillDownDisabled": "true",
"negativeValue": "true",
"id": "asuyvhu5AF",
"value": "@cm=bfqJgOVzcl"
}
],
"negativeValue": "false",
"id": "POEvIZazDv",
"value": "@cm=bfqJgOVzcl"
}
],
"name": "SUB1",
"id": "kwuQpitto1"
}