-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.json
81 lines (81 loc) · 2.71 KB
/
sample.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[
{
"id": "be8bbf3b.85f4f",
"type": "inject",
"z": "fd22a74.6706158",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 100,
"y": 220,
"wires": [
[
"a9cbfd5d.f01b6"
]
]
},
{
"id": "a9cbfd5d.f01b6",
"type": "function",
"z": "fd22a74.6706158",
"name": "",
"func": "msg = {};\nmsg.api = 'convert'; // convert, getOptions, getLanguageList\nmsg['language'] = 'nodejs';\nmsg.variant = 'request';\nmsg.collection = {\"item\":[{\"id\":\"set-utc-time-now\",\"name\":\"Set the current time in UTC\",\"description\":{\"content\":\"Set the current time in UTC\",\"type\":\"text/plain\"},\"request\":{\"url\":{\"path\":[\"utc\",\"settime\"],\"host\":[\"{{apiBaseUrl}}\"],\"query\":[],\"variable\":[]},\"method\":\"POST\",\"body\":{\"mode\":\"urlencoded\",\"urlencoded\":[{\"description\":{\"content\":\"nation code\",\"type\":\"text/plain\"},\"key\":\"nation\",\"value\":\"ko-kr\"},{\"key\":\"nation2\",\"value\":\"ko-kr\"}]}},\"response\":[],\"event\":[]},{\"id\":\"get-utc-time-now\",\"name\":\"Get the current time in UTC\",\"description\":{\"content\":\"Get the current time in UTC\",\"type\":\"text/plain\"},\"request\":{\"url\":{\"path\":[\"utc\",\"now\"],\"host\":[\"{{apiBaseUrl}}\"],\"query\":[{\"key\":\"a\",\"value\":\"a\"}],\"variable\":[]},\"method\":\"GET\"},\"response\":[],\"event\":[]}],\"event\":[],\"variable\":[{\"id\":\"apiBaseUrl\",\"type\":\"string\",\"value\":\"http://localhost\"}],\"info\":{\"_postman_id\":\"5fcc82c4-707f-424b-9de5-5c92460a6802\",\"name\":\"xmysql collection\",\"version\":{\"raw\":\"0.0.1\",\"major\":0,\"minor\":0,\"patch\":1,\"prerelease\":[],\"build\":[],\"string\":\"0.0.1\"},\"schema\":\"https://schema.getpostman.com/json/collection/v2.1.0/collection.json\"}}\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 250,
"y": 220,
"wires": [
[
"52277e8b.7c474"
]
]
},
{
"id": "52277e8b.7c474",
"type": "postman-codegen",
"z": "fd22a74.6706158",
"api": "",
"language": "",
"variant": "",
"name": "postman codegen",
"x": 440,
"y": 220,
"wires": [
[
"d549985d.758338"
]
]
},
{
"id": "d549985d.758338",
"type": "debug",
"z": "fd22a74.6706158",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 640,
"y": 220,
"wires": []
}
]