获取共享节点列表
GET
/api/v1/nodes/shared请求参数
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
ruleChain
object (流程基础信息)
规则链基础信息
id
string
ID
name
string
名称
debugMode
boolean
调试模式
root
boolean
根节点
disabled
boolean
停用
true:上线,false:停用
configuration
object
配置
可自定义字段
additionalInfo
object
扩展信息
保存前端可视化额外信息
metadata
object
节点列表
firstNodeIndex
integer
第一个节点索引
默认0
endpoints
array[object (输入端节点配置) {8}]
输入端列表
nodes
array[object (流程节点配置) {6}]
规则链节点列表
connections
array[object (节点连接) {3}]
节点连接列表
示例
{
"ruleChain": {
"id": "e3153605-71a3-4a3f-bcac-f755710135e6",
"name": "测试",
"debugMode": true,
"root": true,
"additionalInfo": {
"createTime": "2024/05/9 14:14:51",
"description": "",
"updateTime": "2024/05/15 15:53:06",
"username": "admin"
}
},
"metadata": {
"firstNodeIndex": 0,
"nodes": [
{
"id": "node_2",
"additionalInfo": {
"description": "",
"layoutX": 520,
"layoutY": 280
},
"type": "jsTransform",
"name": "21",
"debugMode": false,
"configuration": {
"jsScript": "return {'msg':msg,'metadata':metadata,'msgType':msgType};"
}
},
{
"id": "node_4",
"additionalInfo": {
"description": "",
"layoutX": 910,
"layoutY": 270
},
"type": "jsFilter",
"name": "fa",
"debugMode": true,
"configuration": {
"jsScript": "return msg.temperature < 50;"
}
},
{
"id": "node_8",
"additionalInfo": {
"description": "",
"layoutX": 1180,
"layoutY": 270
},
"type": "jsTransform",
"name": "222",
"debugMode": true,
"configuration": {
"jsScript": "return {'msg':msg,'metadata':metadata,'msgType':msgType};"
}
}
],
"connections": [
{
"fromId": "node_2",
"toId": "node_4",
"type": "Success"
},
{
"fromId": "node_4",
"toId": "node_8",
"type": "False"
}
]
}
}
最后修改时间: 22 天前