-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path01_return_object.json
More file actions
80 lines (80 loc) · 1.45 KB
/
01_return_object.json
File metadata and controls
80 lines (80 loc) · 1.45 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"name": "01_return_object",
"description": "This flow expects a simple http response object as the return value",
"inputs": [
{
"input": null,
"expected_result": {
"status_code": 200,
"headers": {
"Header": "X"
},
"payload": "Hello World"
}
}
],
"flow": {
"starting_node_id": "1",
"node_functions": [
{
"definition_source": "taurus",
"databaseId": "2",
"runtimeFunctionId": "rest::control::respond",
"parameters": [
{
"databaseId": "4",
"runtimeParameterId": "http_response",
"value": {
"referenceValue": {
"nodeId": "1"
}
}
}
]
},
{
"databaseId": "1",
"definition_source": "taurus",
"runtimeFunctionId": "http::response::create",
"parameters": [
{
"databaseId": "1",
"runtimeParameterId": "http_status_code",
"value": {
"literalValue": {
"numberValue": {
"integer": "200"
}
}
}
},
{
"databaseId": "2",
"runtimeParameterId": "headers",
"value": {
"literalValue": {
"structValue": {
"fields": {
"Header": {
"stringValue": "X"
}
}
}
}
}
},
{
"databaseId": "3",
"runtimeParameterId": "payload",
"value": {
"literalValue": {
"stringValue": "Hello World"
}
}
}
],
"nextNodeId": "2"
}
]
}
}