GET 查询官方模板 schema
GET /loom/v1/officialTemplates/{officialTemplate}/schema 查询官方模板 schema
所属分组:Official Templates · 官方模板
BASE URL
https://router.shengsuanyun.com/api认证方式
Authorization: Bearer YOUR_API_KEY端点列表
GET/loom/v1/officialTemplates/{officialTemplate}/schemaGet official template schema
请求参数
| 参数 | 位置 / 类型 | 说明 |
|---|---|---|
officialTemplate必填 | path / any | Official template ID |
请求示例
参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。
curl -X GET 'https://loomloom.shengsuanyun.com/loom/v1/officialTemplates/{officialTemplate}/schema' \
-H 'Authorization: Bearer YOUR_API_KEY'响应
200 OK
application/json
| 字段 | 类型 | 说明 | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
columns | array | 展开结构
数组元素
| |||||||||||||||||||||||||||||||||||||||
description | string | ||||||||||||||||||||||||||||||||||||||||
fields | array | 展开结构
数组元素
| |||||||||||||||||||||||||||||||||||||||
inputSummary | string | ||||||||||||||||||||||||||||||||||||||||
instructions | array | 展开结构
数组元素
| |||||||||||||||||||||||||||||||||||||||
name | string | ||||||||||||||||||||||||||||||||||||||||
outputType | string | ||||||||||||||||||||||||||||||||||||||||
runCount | integer | ||||||||||||||||||||||||||||||||||||||||
sampleRows | array | 展开结构
数组元素
| |||||||||||||||||||||||||||||||||||||||
scenario | string | ||||||||||||||||||||||||||||||||||||||||
skillPackage | object | 展开结构
| |||||||||||||||||||||||||||||||||||||||
templateId | string | ||||||||||||||||||||||||||||||||||||||||
trust | object | 展开结构
| |||||||||||||||||||||||||||||||||||||||
version | string |
{
"columns": [
{
"fieldKey": "string",
"headerLabel": "string",
"order": 0
}
],
"description": "string",
"fields": [
{
"acceptedInputKinds": [
"string"
],
"acceptedMimeTypes": [
"string"
],
"businessHint": "string",
"enumValues": [
"string"
],
"examples": [
"string"
],
"inputHint": "string",
"key": "string",
"label": "string",
"multiValue": false,
"required": false,
"scope": "string",
"type": "string"
}
],
"inputSummary": "string",
"instructions": [
"string"
],
"name": "string",
"outputType": "string",
"runCount": 0,
"sampleRows": [
{
"values": {}
}
],
"scenario": "string",
"skillPackage": {
"archiveHash": "string",
"archiveUrl": "string",
"available": false,
"sizeBytes": 0,
"totalDownloadCount": 0
},
"templateId": "string",
"trust": {
"downloadCount": 0,
"runCount": 0,
"updates": [
{
"summary": "string",
"updatedAt": "string",
"version": "string"
}
]
},
"version": "string"
}400 Bad Request
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}404 Not Found
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}500 Internal Server Error
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}