Lists attribute values by given data set ID and attribute code.
Resource URL | https://service.belladati.com/api/dataSets/:id/attributes/:code/values |
---|---|
HTTP Method |
|
Parameters | Detail | Example |
---|---|---|
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 |
filter | (Optional) If set, the result only contains values that contain the filter text. | Carolina |
JSON response contains an array "values" that contains multiple member objects with following definition:
Name | Description |
---|---|
value | Member value |
label | Member label |
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" } ] } |