代码拉取完成,页面将自动刷新
{
"_id":{
"$oid":"6284996796e28d6fc3e1c0db"
},
"name":"测试",
"desc":"测试流程",
// 需要执行的任务
"works":[
{
// 步骤号
"step":"1",
"async":false,
"restId":"62833f1858f599635e0a8cd5",
// 需要执行的接口
"restApiForEx":{
"_id":{
"$oid":"62833f1858f599635e0a8cd5"
},
"url":"/getAge",
"method":"get",
"desc":"getAge",
"params":[
{
"in":"query",
"name":"uid",
"require":true,
"type":"string",
"paramEntities":[
],
"extract":{
"el":"$.uuu",
"elType":"JSON_PATH"
}
}
],
"res":[
{
"require":false,
"type":"integer",
"paramEntities":[
]
}
]
},
// 执行接口需要做的操作
"watchers":[
{
// 条件表达式, 在接口执行完成后对age属性进行判断,是否大于0,如果是则执行then,反之则执行cat
"condition":"$.age > 0",
"elType":"JSON_PATH",
"then":[
{
"step":"2",
"async":false,
"restId":"62833f1858f599635e0a8cd6",
"restApiForEx":{
"_id":{
"$oid":"62833f1858f599635e0a8cd6"
},
"url":"/getUs",
"method":"get",
"desc":"getUs",
"params":[
{
"in":"query",
"name":"uid",
"require":true,
"type":"string",
"paramEntities":[
],
// 执行参数
"extract":{
"el":"$.uuu",
"elType":"JSON_PATH"
}
}
],
"res":[
]
},
"watchers":[
]
}
]
}
]
}
],
"resultId":"6284996796e28d6fc3e1c0da",
"_class":"com.github.brick.apiflow.model.flow.FlowEntity"
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。