/api/dataSets/:id/attributes/:code/subsets

Lists subsets for the given data set ID and attribute code.

Resource Information

Resource URL

https://service.belladati.com/api/dataSets/:id/attributes/:code/subsets

HTTP Method

GET

Request Parameters

idData Set identifier. You can find the ID in the response to  /api/dataSets .123
codeAttribute code. You can find the code in the response to  /api/dataSets/:id .L_STATE

Response Structure

JSON response contains an array " subsets" that contains multiple objects with following definition:


namename of the subsets
idid of the subset
subsetValuesarray of subset values


Sample Request / Response

Using curl:

curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/dataSets/123/attributes/L_STATE/subsets

The JSON format response:

{
    "subsets": [
        {
            "subsetValues": [
                {
                    "drillDownDisabled": "false",
                    "children": [
                        {
                            "drillDownDisabled": "false",
                            "negativeValue": "true",
                            "id": "fBJaNunuiJ",
                            "value": "@cm=QYvZs1SGpr"
                        },
                        {
                            "drillDownDisabled": "false",
                            "negativeValue": "false",
                            "id": "jOhWzD8LEW",
                            "value": "@cm=FThZqWwVeW"
                        }
                    ],
                    "negativeValue": "false",
                    "id": "KYq2bE3QHJ",
                    "value": "@cm=5hzGPymt0M"
                },
                {
                    "drillDownDisabled": "false",
                    "children": [
                        {
                            "drillDownDisabled": "false",
                            "children": [
                                {
                                    "drillDownDisabled": "false",
                                    "negativeValue": "false",
                                    "id": "FnKiBrgnvs",
                                    "value": "@cm=DakmNdWHX9"
                                },
                                {
                                    "drillDownDisabled": "false",
                                    "negativeValue": "false",
                                    "id": "YCDJbfZwsf",
                                    "value": "@cm=x8Tnze2sMi"
                                }
                            ],
                            "negativeValue": "false",
                            "id": "h8mUCcVweT",
                            "value": "@cm=7vwsjP4MfP"
                        },
                        {
                            "drillDownDisabled": "false",
                            "negativeValue": "false",
                            "id": "0KjFtFb2ho",
                            "value": "@cm=IvwPVDilDj"
                        }
                    ],
                    "negativeValue": "false",
                    "id": "61YMjucUCl",
                    "value": "@cm=crTP6je1gS"
                }
            ],
            "name": "empty",
            "id": "xELCQrxs09"
        },
        {
            "subsetValues": [
                {
                    "drillDownDisabled": "false",
                    "negativeValue": "false",
                    "id": "J9pBCRfOe5",
                    "value": "@cm=5hzGPymt0M"
                },
                {
                    "drillDownDisabled": "false",
                    "negativeValue": "false",
                    "id": "nLayULiURo",
                    "value": "@cm=crTP6je1gS"
                },
                {
                    "drillDownDisabled": "false",
                    "negativeValue": "false",
                    "id": "zjwVAtj7mb",
                    "value": "@cm=FThZqWwVeW"
                },
                {
                    "drillDownDisabled": "false",
                    "negativeValue": "false",
                    "id": "sIqjmPEsWH",
                    "value": "@cm=7vwsjP4MfP"
                },
                {
                    "drillDownDisabled": "false",
                    "negativeValue": "false",
                    "id": "92flL8q5hM",
                    "value": "@cm=lhtqpROYZZ"
                }
            ],
            "name": "linear",
            "id": "E8lTGCgoO7"
        }
    ]
}


  • No labels