查询类型更新结果
此接口用于查询所有节点类型是否已更新,与数据库中的原始数据进行对比。
接口描述
通信协议:HTTP
URL:GET /api/v1/node/type/check
传参方式:query
请求参数
无
响应参数
字段名 | 类型 | 说明 |
---|---|---|
data | Node[ ] | 返回的节点详情 |
Node
字段名 | 类型 | 说明 |
---|---|---|
id | string | 节点 ID |
ip | string | 节点 IP 地址 |
port | number | 节点服务端口 |
name | string | 节点名称 |
type | string | 节点类型 |
newType | string | 更新后的节点类型 |
请求示例
curl --location --request GET 'http://localhost:3001/api/v1/node/type/check'
响应示例
{
"status": 200,
"message": "success",
"fieldErrors": null,
"data": [
{
"id": "667517ef1013173649689952308a31c72",
"ip": "127.0.0.1",
"port": 1112,
"name": "testnode",
"type": "sylixos",
"newType": "linux"
}
]
}
错误码
具体请参见 错误码说明。