瀏覽規格定義瀏覽和檢查來源中所含物件所需的引數。 探索規格也會定義探索及檢查物件時傳回的回應格式。
探索規格採用硬式編碼,您只需將下方的裝載複製並貼到您的連線規格即可。
"exploreSpec": {
"name": "Resource",
"type": "Resource",
"requestSpec": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object"
},
"responseSpec": {
"$schema": "http: //json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"format": {
"type": "string"
},
"schema": {
"type": "object",
"properties": {
"columns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
}
}
}
}
}
},
"data": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
}
探索規格 | 說明 | 範例 |
---|---|---|
name |
定義瀏覽規格的名稱或識別碼。 | Resource |
type |
定義瀏覽規格的型別。 | Resource |
requestSpec |
包含探索連線中物件所需的引數。 | |
requestSpec.type |
定義要求規格的資料型別。 | object |
responseSpec |
包含定義回應訊息(針對探索呼叫傳回)格式的引數。 | |
responseSpec.type |
定義回應規格的資料型別。 | object |
responseSpec.properties |
包含與回應訊息格式相關之資訊。 | |
responseSpec.properties.format |
定義回應結構的格式。 | object |
responseSpec.properties.format.type |
定義屬性的資料型別。 | string |
responseSpec.schema |
包含與回應結構描述格式相關之資訊。 | |
responseSpec.schema.type |
定義結構描述的資料型別。 | object |
responseSpec.schema.properties |
包含有關資料行、型別和結構描述內儲存專案的資訊。 | |
responseSpec.schema.properties.columns.items.properties.name |
顯示檔案的名稱。 | |
responseSpec.schema.properties.columns.items.properties.name.type |
定義檔案名稱的資料型別。 | string |
填入您的瀏覽規格後,您可以繼續使用 Flow Service API。 請參閱 自助來源(批次SDK) API指南 以取得詳細資訊。