VWED_server/config/components/HTTP_request.json

182 lines
7.3 KiB
JSON
Raw Permalink Normal View History

2025-04-30 16:57:46 +08:00
{
"label": "HTTP 请求",
"order": 1,
"blocks": [
{
"type": "All",
"name": "GetBp",
"label": "发送 GET 请求",
"description": "",
"inputParams": [
{
"name": "url",
"type": "String",
"label": "请求的 URL",
"description": "",
"required": true,
"defaultValue": null,
"options": []
},
{
"name": "header",
"type": "JsonPair",
"label": "Header",
"description": "",
"required": false,
"defaultValue": null,
"options": []
},
{
"name": "retry",
"type": "Boolean",
"label": "是否重试",
"description": "",
"required": false,
"defaultValue": null,
"options": []
},
{
"name": "retryTimes",
"type": "Integer",
"label": "重试次数",
"description": "",
"required": false,
"defaultValue": null,
"options": []
},
{
"name": "retryInterval",
"type": "Long",
"label": "重试时间间隔(ms)",
"description": "",
"required": false,
"defaultValue": null,
"options": []
}
],
"extraInputParamsFunc": "",
"outputParams": {},
"contextVariables": {
"response": {
"type": "String",
"label": "请求返回的字符串",
"description": null
}
},
"children": {},
"hidden": false,
"scriptFunction": null,
"operatingInstructions": "## 发送 GET 请求 (GetBp)\n\n### 描述\n本块用于发送 GET 请求。\n\n### 输入参数\n\n| 参数名 | 是否必填 | 类型 | 描述 |\n\n|---------|---------|------|------|\n| url | 必填 | String | 请求的 URL |\n| header | 非必填 | JsonPair | Header |\n| retry | 非必填 | Boolean | 是否重试 |\n| retryTimes | 非必填 | Integer | 重试次数 |\n| retryInterval | 非必填 | Long | 重试时间间隔(ms) |\n\n### 输出参数\n\n| 参数名 | 类型 | 描述 |\n\n|---------|------|------|\n| response | String | 请求返回的字符串 |\n"
},
{
"type": "All",
"name": "PostBp",
"label": "发送 POST 请求",
"description": "",
"inputParams": [
{
"name": "url",
"type": "String",
"label": "请求的 URL",
"description": "",
"required": true,
"defaultValue": null,
"options": []
},
{
"name": "param",
"type": "String",
"label": "请求的参数, JSON 类型",
"description": "",
"required": true,
"defaultValue": null,
"options": []
},
{
"name": "header",
"type": "JsonPair",
"label": "Header",
"description": "",
"required": false,
"defaultValue": null,
"options": []
},
{
"name": "mediaType",
"type": "String",
"label": "类型",
"description": "",
"required": false,
"defaultValue": null,
"options": [
{
"label": "默认",
"value": "JSON"
},
{
"label": "application/json",
"value": "JSON"
},
{
"label": "text/html",
"value": "HTML"
},
{
"label": "application/xml",
"value": "XML"
},
{
"label": "application/x-www-form-urlencoded",
"value": "XWWWFORMURLENCODED"
},
{
"label": "application/javascript",
"value": "JAVASCRIPT"
}
]
},
{
"name": "retry",
"type": "Boolean",
"label": "是否重试",
"description": "",
"required": false,
"defaultValue": null,
"options": []
},
{
"name": "retryTimes",
"type": "Integer",
"label": "重试次数",
"description": "",
"required": false,
"defaultValue": null,
"options": []
},
{
"name": "retryInterval",
"type": "Long",
"label": "重试时间间隔(ms)",
"description": "",
"required": false,
"defaultValue": null,
"options": []
}
],
"extraInputParamsFunc": "",
"outputParams": {},
"contextVariables": {
"response": {
"type": "Object",
"label": "响应的 JSON",
"description": null,
"className": "com.seer.rds.vo.response.HttpResponse"
}
},
"children": {},
"hidden": false,
"scriptFunction": null,
"operatingInstructions": "## 发送 POST 请求 (PostBp)\n\n### 描述\n本块用于发送 POST 请求。\n\n### 输入参数\n\n| 参数名 | 是否必填 | 类型 | 描述 |\n\n|---------|---------|------|------|\n| url | 必填 | String | 请求的 URL |\n| param | 必填 | String | 请求的参数, JSON 类型 |\n| header | 非必填 | JsonPair | Header |\n| mediaType | 非必填 | String | 类型 |\n| retry | 非必填 | Boolean | 是否重试 |\n| retryTimes | 非必填 | Integer | 重试次数 |\n| retryInterval | 非必填 | Long | 重试时间间隔(ms) |\n\n### 输出参数\n\n| 参数名 | 类型 | 描述 |\n\n|---------|------|------|\n| response | Object | 响应的 JSON |\n"
}
]
}