- 用户中心
- 规则链管理
- 运行日志
- 共享节点管理
- 动态组件管理
- 节点组件管理
- 组件市场
- 设置
获取最近修改的规则链详情
开发环境
开发环境
GET
/api/v1/rules/get/latest
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://dev-cn.your-api-server.com/api/v1/rules/get/latest'
返回响应
🟢200成功
application/json
Body
ruleChain
object (流程基础信息)
规则链基础信 息
id
string
ID
name
string
名称
debugMode
boolean
调试模式
root
boolean
根节点
disabled
boolean
停用
configuration
object
配置
additionalInfo
object
扩展信息
metadata
object
节点列表
firstNodeIndex
integer
第一个节点索引
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"
}
]
}
}
修改于 2025-04-01 02:39:44