删除共享节点
开发中DELETE
/api/v1/nodes/shared/{id}请求参数
Path 参数
id
string
必需
Body 参数application/json
id
string
节点ID
规则链内唯一
type
string
节点类型
name
string
名称
debugMode
boolean
调试模式
configuration
object
节点表单配置
根据不同节点类型配置字段不同
additionalInfo
object
扩展字段
前端可视化信息配置的额外信息
description
string
描述
layoutX
integer
布局X
layoutY
integer
布局Y
icon
string
图标
background
string
背景颜色
示例
{
"id": "string",
"type": "string",
"name": "string",
"debugMode": true,
"configuration": {},
"additionalInfo": {
"description": "string",
"layoutX": 0,
"layoutY": 0,
"icon": "string",
"background": "string"
}
}
示例代码
返回响应
成功(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"
}
]
}
}
最后修改时间: 4 个月前