Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed translated content for 'zh'
Sv translation
languageen

/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:

Code Block
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:

Code Block
javascript
javascript
{
  "values" : [
    {
      "value" : "North Carolina",
      "label" : "North Carolina"
    },
    {
      "value" : "South Carolina",
      "label" : "South Carolina"
    }
  ]
}
Sv translation
languageja

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

指定されたデータセットIDと属性コードによる属性値をリストします。

リソース情報

リクエストパラメーター

パラメーター

詳細

idデータセット識別子。/api/dataSetsに応答して、IDを見つけることができます。123
codeコード属性。/api/dataSets/:idに応じてコードを見つけることができます。L_STATE

filter

(オプション) 設定された場合、結果はフィルタテキストのみが含まれます。

Carolina

レスポンス構造

JSONレスポンスには、複数のメンバーオブジェクトを含む配列 "valuesが定義されています。

説明
value

メンバー値

labelメンバーのラベル

サンプルリクエスト/レスポンス

curl使用:

Code Block
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

JSONフォーマットのレスポンス:

Code Block
javascript
javascript
{
  "values" : [
    {
      "value" : "North Carolina",
      "label" : "North Carolina"
    },
    {
      "value" : "South Carolina",
      "label" : "South Carolina"
    }
  ]
}