You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

/api/dataSets/:id

Shows detailed information about the data set with the specified ID.

Resource Information

Parameters

Parameters

Detail

id

ID of the data set to fetch. You can find the ID in the response to /api/dataSets
Example: 123

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

The JSON format response:

{
  "id" : 123,
  "name" : "John's data set",
  "owner" : "John Smith",
  "lastChange" : "Tue, 22 May 2012 17:16:31 GMT",
  "attributes" : [
    {
      "id" : 24530,
      "name" : "City",
      "code" : "L_CITY",
      "type" : "String"
    }
  ],
  "indicators" : [
    {
      "id" : 24531,
      "name" : "Count",
      "code" : "M_COUNT",
      "type" : "DATA_INDICATOR"
    },
    {
      "id" : 24532,
      "name" : "Calculated indicator",
      "formula" : "M_COUNT * 1000",
      "type" : "FORMULA_INDICATOR"
    },
    {
      "id" : 24533,
      "name" : "Indicator group",
      "type" : "INDICATOR_GROUP"
    }
  ],
}
  • No labels