/api/dataSets/:id/attributes/:code/values

Lists attribute values by given data set ID and attribute code.

Resource Information

Request Parameters

Parameters

Detail

Example
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

filter

(Optional) If set, the result only contains values that contain the filter text.

Carolina

Response Structure

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

NameDescription
valueMember value
labelMember label

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/values?filter=Carolina

The JSON format response:

{
  "values" : [
    {
      "value" : "North Carolina",
      "label" : "North Carolina"
    },
    {
      "value" : "South Carolina",
      "label" : "South Carolina"
    }
  ]
}
  • No labels