-
Notifications
You must be signed in to change notification settings - Fork 5
/
flows.json
57 lines (57 loc) · 1.45 KB
/
flows.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[
{
"id": "f6f2187d.f17ca8",
"type": "tab",
"label": "Node-Red HealthCheck Flow",
"disabled": false,
"info": "# Healthcheck Flow\n\n- Provides a simple __HTTP GET__ API `/health`\n- Returns __HTTP 200__ response with body \"OK\""
},
{
"id": "7c3a93f70a2b990a",
"type": "http in",
"z": "f6f2187d.f17ca8",
"name": "healthcheck API",
"url": "/health",
"method": "get",
"upload": false,
"swaggerDoc": "",
"x": 400,
"y": 160,
"wires": [
[
"64c995f0808eef31"
]
],
"info": "## Healthcheck HTTP API\n\n- __HTTP GET__ on `/health` should provide __HTTP 200__ response with response body `OK`"
},
{
"id": "f3da0fdf99cbba3e",
"type": "http response",
"z": "f6f2187d.f17ca8",
"name": "HealthCheckNode",
"statusCode": "200",
"headers": {},
"x": 930,
"y": 160,
"wires": []
},
{
"id": "64c995f0808eef31",
"type": "function",
"z": "f6f2187d.f17ca8",
"name": "HTTP healthcheck response",
"func": "msg.payload = \"OK\"\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 640,
"y": 160,
"wires": [
[
"f3da0fdf99cbba3e"
]
]
}
]