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

List data sources for data set with the specified ID.

Resource Information

Request Parameters

Parameters

Detail

Example

id

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

123

Response Structure

Code Block
javascript
javascript
{
  "dataSources" : [ ],
}

JSON response contains array "dataSources" that contains multiple data sources with following definition:

NameDescription
idData source identifier
nameData source name
typeData source type

 

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

The JSON format response:

Code Block
javascript
javascript
{
  "dataSources" : [
    {
      "id" : 4543,
      "name" : "My SQL Data Source",
      "type" : "SQLImportTable"
    }
  ],
}
Sv translation
languageja

/api/dataSets/:id/dataSources

指定されたIDを持つデータセットのデータソースを一覧表示します。

リソース情報

リクエストパラメーター

パラメーター

詳細

id

データセットのIDをフェッチします。api/dataSetsに応答して、IDを見つけることができます。

123

レスポンス構造

Code Block
javascript
javascript
{
  "dataSources" : [ ],
}

JSONレスポンスには、以下の定義を持つ複数のデータソースを含む配列 "dataSources" が含まれています:

説明
idデータソース識別子
nameデータソース名
typeデータソースタイプ 


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

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

JSON形式のレスポンス:

Code Block
javascript
javascript
{
  "dataSources" : [
    {
      "id" : 4543,
      "name" : "My SQL Data Source",
      "type" : "SQLImportTable"
    }
  ],
}