[text] ctc1

Viewer

  1. [
  2.     {
  3.         "id": "e95296dbcc346886",
  4.         "type": "tab",
  5.         "label": "Flow 4",
  6.         "disabled": false,
  7.         "info": "",
  8.         "env": []
  9.     },
  10.     {
  11.         "id": "4a4a032f92369264",
  12.         "type": "http in",
  13.         "z": "e95296dbcc346886",
  14.         "name": "FAT",
  15.         "url": "/FAT",
  16.         "method": "get",
  17.         "upload": false,
  18.         "swaggerDoc": "",
  19.         "x": 110,
  20.         "y": 100,
  21.         "wires": [
  22.             [
  23.                 "95a8fc3f1f7bf680"
  24.             ]
  25.         ]
  26.     },
  27.     {
  28.         "id": "95a8fc3f1f7bf680",
  29.         "type": "function",
  30.         "z": "e95296dbcc346886",
  31.         "name": "function 2",
  32.         "func": "msg.url = \"Project\";\nreturn msg;",
  33.         "outputs": 1,
  34.         "timeout": 0,
  35.         "noerr": 0,
  36.         "initialize": "",
  37.         "finalize": "",
  38.         "libs": [],
  39.         "x": 280,
  40.         "y": 120,
  41.         "wires": [
  42.             [
  43.                 "41677cb2dad5ae59"
  44.             ]
  45.         ]
  46.     },
  47.     {
  48.         "id": "4a7fdb09f4d4ca96",
  49.         "type": "http response",
  50.         "z": "e95296dbcc346886",
  51.         "name": "",
  52.         "statusCode": "",
  53.         "headers": {},
  54.         "x": 630,
  55.         "y": 220,
  56.         "wires": []
  57.     },
  58.     {
  59.         "id": "41677cb2dad5ae59",
  60.         "type": "template",
  61.         "z": "e95296dbcc346886",
  62.         "name": "",
  63.         "field": "payload",
  64.         "fieldType": "msg",
  65.         "format": "handlebars",
  66.         "syntax": "mustache",
  67.         "template": "\"This is the payload: {{payload}} !\n<!DOCTYPE html>\n<html>\n<head>\n<h1 style=\"background-color:DodgerBlue;\">IoT Domain</h1>\n</head>\n<body>\n<p style=\"background-color:Tomato;\">\n<OL>\n<LI> Enter your Name.\n<LI> Registration Number.\n</OL>\n<h4>\n<a href=\"https://projectmark.com/\"> Project Mark</a>\n</h4>\n<form method=\"post\" action=\"/{{url}}\">\n<label for=\"name\">First name:</label><br>\n<input type=\"text\" id=\"fname\" name=\"fname\"><br>\n<label for=\"reg\">Reg No:</label><br>\n<input type=\"text\" id=\"reg\" name=\"reg\" ><br><br>\n<label for=\"topic\">Project Title:</label><br>\n<input type=\"text\" id=\"topic\" name=\"Project Topic\" ><br><br>\n<input type=\"submit\" value=\"Submit\">\n<input type=\"reset\" value=\"Reset\" >\n</form>\n</body>\n</html>",
  68.         "output": "str",
  69.         "x": 460,
  70.         "y": 160,
  71.         "wires": [
  72.             [
  73.                 "4a7fdb09f4d4ca96"
  74.             ]
  75.         ]
  76.     },
  77.     {
  78.         "id": "af205c003299cf1b",
  79.         "type": "http in",
  80.         "z": "e95296dbcc346886",
  81.         "name": "",
  82.         "url": "/PROJECT",
  83.         "method": "post",
  84.         "upload": false,
  85.         "swaggerDoc": "",
  86.         "x": 100,
  87.         "y": 260,
  88.         "wires": [
  89.             [
  90.                 "c8ebbbec5d9e8bff",
  91.                 "5e4abf0d486734b2"
  92.             ]
  93.         ]
  94.     },
  95.     {
  96.         "id": "c8ebbbec5d9e8bff",
  97.         "type": "json",
  98.         "z": "e95296dbcc346886",
  99.         "name": "",
  100.         "property": "payload",
  101.         "action": "",
  102.         "pretty": false,
  103.         "x": 270,
  104.         "y": 260,
  105.         "wires": [
  106.             [
  107.                 "31cce3b0fbfa23be"
  108.             ]
  109.         ]
  110.     },
  111.     {
  112.         "id": "31cce3b0fbfa23be",
  113.         "type": "function",
  114.         "z": "e95296dbcc346886",
  115.         "name": "function 3",
  116.         "func": "\nreturn msg;",
  117.         "outputs": 1,
  118.         "timeout": 0,
  119.         "noerr": 0,
  120.         "initialize": "",
  121.         "finalize": "",
  122.         "libs": [],
  123.         "x": 420,
  124.         "y": 320,
  125.         "wires": [
  126.             [
  127.                 "94452a18d0783d05"
  128.             ]
  129.         ]
  130.     },
  131.     {
  132.         "id": "94452a18d0783d05",
  133.         "type": "http response",
  134.         "z": "e95296dbcc346886",
  135.         "name": "",
  136.         "statusCode": "",
  137.         "headers": {},
  138.         "x": 590,
  139.         "y": 360,
  140.         "wires": []
  141.     },
  142.     {
  143.         "id": "5e4abf0d486734b2",
  144.         "type": "debug",
  145.         "z": "e95296dbcc346886",
  146.         "name": "debug 5",
  147.         "active": true,
  148.         "tosidebar": true,
  149.         "console": false,
  150.         "tostatus": false,
  151.         "complete": "false",
  152.         "statusVal": "",
  153.         "statusType": "auto",
  154.         "x": 320,
  155.         "y": 420,
  156.         "wires": []
  157.     }
  158. ]

Editor

You can edit this paste and save as new:


File Description
  • ctc1
  • Paste Code
  • 29 Apr-2024
  • 4.25 Kb
You can Share it: