配置自助源(批处理SDK)的浏览规范

“浏览”规范定义了浏览和检查源中包含的对象所需的参数。 浏览规范还定义了在探索和检查对象时返回的响应格式。

小贴士

浏览规范是硬编码的,您只需将下面的有效负载复制并粘贴到连接规范中即可。

"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指南 以了解更多信息。

在此页面上