Hi all!
I want to run a postman collection .json file directly from a dashboard. I can upload a json file but then i need to process that file.
So far, i have this:
I've build a UI dashboard so i can upload a postman collection file.
[
{
"id": "5e57a846f02916fe",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "90de0cfe.ca90a",
"type": "http in",
"z": "5e57a846f02916fe",
"name": "",
"url": "/file-upload",
"method": "post",
"upload": true,
"swaggerDoc": "",
"x": 180,
"y": 80,
"wires": [
[
"f44eee6a.fa1a8",
"7835838e.a259cc"
]
]
},
{
"id": "f44eee6a.fa1a8",
"type": "debug",
"z": "5e57a846f02916fe",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "req.files",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 370,
"y": 80,
"wires": []
},
{
"id": "7835838e.a259cc",
"type": "function",
"z": "5e57a846f02916fe",
"name": "",
"func": "msg.payload = \"Archivo subido OK\";\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 360,
"y": 120,
"wires": [
[
"b2930be5.501e38",
"264a1aab10076304"
]
]
},
{
"id": "b2930be5.501e38",
"type": "http response",
"z": "5e57a846f02916fe",
"name": "",
"statusCode": "",
"headers": {},
"x": 530,
"y": 120,
"wires": []
},
{
"id": "d052db55e2ac719b",
"type": "uibuilder",
"z": "5e57a846f02916fe",
"name": "",
"topic": "",
"url": "lala",
"fwdInMessages": false,
"allowScripts": false,
"allowStyles": false,
"copyIndex": true,
"templateFolder": "blank",
"extTemplate": "",
"showfolder": false,
"reload": false,
"sourceFolder": "src",
"deployedVersion": "6.4.1",
"showMsgUib": false,
"x": 750,
"y": 40,
"wires": [
[],
[]
]
},
{
"id": "264a1aab10076304",
"type": "debug",
"z": "5e57a846f02916fe",
"name": "debug 18",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 640,
"y": 160,
"wires": []
},
{
"id": "568e9df3cbc2258c",
"type": "function",
"z": "5e57a846f02916fe",
"name": "function 1",
"func": "\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 360,
"y": 180,
"wires": [
[]
]
}
]
Any clues?.
Thanks a lot!