-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathl2l.postman_collection.json
More file actions
380 lines (380 loc) · 22.1 KB
/
l2l.postman_collection.json
File metadata and controls
380 lines (380 loc) · 22.1 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
{
"info": {
"name": "l2l",
"_postman_id": "68a06171-7282-4295-b98f-9e1ff7638ac1",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "vessel-iot",
"description": "",
"item": [
{
"name": "start vessel-iot-simulator",
"request": {
"method": "POST",
"header": [],
"body": {},
"url": {
"raw": "ssp-vessel-iot:8000/vessel-iot-hub/start",
"host": [
"ssp-vessel-iot"
],
"port": "8000",
"path": [
"vessel-iot-hub",
"start"
]
},
"description": ""
},
"response": []
},
{
"name": "event : DELAY from HUMAN--> http trigger",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"dx\" : 5,\n\t\"dy\" : -2\n}"
},
"url": {
"raw": "ssp-vessel-iot:8000/vessel-iot-hub/delay",
"host": [
"ssp-vessel-iot"
],
"port": "8000",
"path": [
"vessel-iot-hub",
"delay"
]
},
"description": ""
},
"response": []
},
{
"name": "hello, vessel-iot-hub",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "ssp-vessel-iot:8000/vessel-iot-hub/hello",
"host": [
"ssp-vessel-iot"
],
"port": "8000",
"path": [
"vessel-iot-hub",
"hello"
]
},
"description": ""
},
"response": []
}
]
},
{
"name": "iFTTT",
"description": "",
"item": [
{
"name": "event: IOT_DATA_UPDATE",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"event\" : {\n \t\"event_type\" : \"IOT_DATA_UPDATE\",\n \t\"event_id\" : \"0002\"\n },\n \"context\" : {\n \t\"vid\" : \"413362260\",\n \t\"longitude\" : 114.54404,\n \t\"latitude\" : 30.66266,\n \t\"speed\" : 7.3,\n \t\"timeStamp\" : \"2019-01-28 11:37:23\"\n \t}\n}"
},
"url": {
"raw": "ssp-lambda:3000",
"host": [
"ssp-lambda"
],
"port": "3000"
},
"description": ""
},
"response": []
},
{
"name": "evetm: VESSEL_DELAY",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"event\": {\n \"event_type\": \"VESSEL_DELAY\",\n \"event_id\": \"1113\"\n },\n \"context\": {\n \"vid\": \"413362260\",\n \"timeStamp\": \"2019-01-29 23:51:20\",\n \"reason\": \"HUMAN_NOTIFICATION\",\n \"zoomInVal\": 1000,\n \"dx\": 18000000,\n \"stepIndex\": 0,\n \"dy\": -7200000,\n \"startTime\": \"2019-01-29 20:48:56\",\n \"unit_type\": \"MILLs\",\n \"steps\": [\n {\n \"prePort\": \"起始点\",\n \"nextPort\": \"黄石\",\n \"voyagingDuration\": 20040000,\n \"anchoringDuration\": 18000000,\n \"dockingDuration\": 39600000\n },\n {\n \"prePort\": \"黄石\",\n \"nextPort\": \"武穴\",\n \"voyagingDuration\": 12720000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"武穴\",\n \"nextPort\": \"九江\",\n \"voyagingDuration\": 7920000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"九江\",\n \"nextPort\": \"安庆\",\n \"voyagingDuration\": 30960000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"安庆\",\n \"nextPort\": \"池州\",\n \"voyagingDuration\": 12840000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"池州\",\n \"nextPort\": \"铜陵\",\n \"voyagingDuration\": 6960000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"铜陵\",\n \"nextPort\": \"芜湖\",\n \"voyagingDuration\": 20040000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"芜湖\",\n \"nextPort\": \"马鞍山\",\n \"voyagingDuration\": 10560000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"马鞍山\",\n \"nextPort\": \"南京\",\n \"voyagingDuration\": 15840000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"南京\",\n \"nextPort\": \"仪征\",\n \"voyagingDuration\": 4320000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"仪征\",\n \"nextPort\": \"镇江\",\n \"voyagingDuration\": 4440000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"镇江\",\n \"nextPort\": \"泰州\",\n \"voyagingDuration\": 12120000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"泰州\",\n \"nextPort\": \"常州\",\n \"voyagingDuration\": 7680000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"常州\",\n \"nextPort\": \"江阴\",\n \"voyagingDuration\": 6120000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n }\n ],\n \"status\": \"VOYAGING\"\n }\n}"
},
"url": {
"raw": "ssp-lambda:3000",
"host": [
"ssp-lambda"
],
"port": "3000"
},
"description": ""
},
"response": []
},
{
"name": "event: SHIP_PROCESS_DELAY",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"event\": {\n \"event_type\": \"SHIP_PROCESS_DELAY\",\n \"event_id\": \"1114\"\n },\n \"context\": {\n \"serviceVersion\": \"v2.0.1\",\n \"inboundVariables\": {\n \"vid\": \"413362260\",\n \"zoomInVal\": 1000,\n \"vesselSchedule\": [\n {\n \"prePort\": \"起始点\",\n \"nextPort\": \"黄石\",\n \"estimateAnchorBeginTime\": \"2019-01-30 02:22:56\",\n \"estimateDockingBeginTime\": \"2019-01-30 13:22:56\",\n \"estimateDockingEndTime\": \"2019-01-30 18:22:56\"\n },\n {\n \"prePort\": \"黄石\",\n \"nextPort\": \"武穴\",\n \"estimateAnchorBeginTime\": \"2019-01-30 21:54:56\",\n \"estimateDockingBeginTime\": \"2019-01-31 03:54:56\",\n \"estimateDockingEndTime\": \"2019-01-31 03:54:56\"\n },\n {\n \"prePort\": \"武穴\",\n \"nextPort\": \"九江\",\n \"estimateAnchorBeginTime\": \"2019-01-31 06:06:56\",\n \"estimateDockingBeginTime\": \"2019-01-31 12:06:56\",\n \"estimateDockingEndTime\": \"2019-01-31 12:06:56\"\n },\n {\n \"prePort\": \"九江\",\n \"nextPort\": \"安庆\",\n \"estimateAnchorBeginTime\": \"2019-01-31 20:42:56\",\n \"estimateDockingBeginTime\": \"2019-02-01 02:42:56\",\n \"estimateDockingEndTime\": \"2019-02-01 02:42:56\"\n },\n {\n \"prePort\": \"安庆\",\n \"nextPort\": \"池州\",\n \"estimateAnchorBeginTime\": \"2019-02-01 06:16:56\",\n \"estimateDockingBeginTime\": \"2019-02-01 12:16:56\",\n \"estimateDockingEndTime\": \"2019-02-01 12:16:56\"\n },\n {\n \"prePort\": \"池州\",\n \"nextPort\": \"铜陵\",\n \"estimateAnchorBeginTime\": \"2019-02-01 14:12:56\",\n \"estimateDockingBeginTime\": \"2019-02-01 20:12:56\",\n \"estimateDockingEndTime\": \"2019-02-01 20:12:56\"\n },\n {\n \"prePort\": \"铜陵\",\n \"nextPort\": \"芜湖\",\n \"estimateAnchorBeginTime\": \"2019-02-02 01:46:56\",\n \"estimateDockingBeginTime\": \"2019-02-02 07:46:56\",\n \"estimateDockingEndTime\": \"2019-02-02 07:46:56\"\n },\n {\n \"prePort\": \"芜湖\",\n \"nextPort\": \"马鞍山\",\n \"estimateAnchorBeginTime\": \"2019-02-02 10:42:56\",\n \"estimateDockingBeginTime\": \"2019-02-02 16:42:56\",\n \"estimateDockingEndTime\": \"2019-02-02 16:42:56\"\n },\n {\n \"prePort\": \"马鞍山\",\n \"nextPort\": \"南京\",\n \"estimateAnchorBeginTime\": \"2019-02-02 21:06:56\",\n \"estimateDockingBeginTime\": \"2019-02-03 03:06:56\",\n \"estimateDockingEndTime\": \"2019-02-03 03:06:56\"\n },\n {\n \"prePort\": \"南京\",\n \"nextPort\": \"仪征\",\n \"estimateAnchorBeginTime\": \"2019-02-03 04:18:56\",\n \"estimateDockingBeginTime\": \"2019-02-03 10:18:56\",\n \"estimateDockingEndTime\": \"2019-02-03 10:18:56\"\n },\n {\n \"prePort\": \"仪征\",\n \"nextPort\": \"镇江\",\n \"estimateAnchorBeginTime\": \"2019-02-03 11:32:56\",\n \"estimateDockingBeginTime\": \"2019-02-03 17:32:56\",\n \"estimateDockingEndTime\": \"2019-02-03 17:32:56\"\n },\n {\n \"prePort\": \"镇江\",\n \"nextPort\": \"泰州\",\n \"estimateAnchorBeginTime\": \"2019-02-03 20:54:56\",\n \"estimateDockingBeginTime\": \"2019-02-04 02:54:56\",\n \"estimateDockingEndTime\": \"2019-02-04 02:54:56\"\n },\n {\n \"prePort\": \"泰州\",\n \"nextPort\": \"常州\",\n \"estimateAnchorBeginTime\": \"2019-02-04 05:02:56\",\n \"estimateDockingBeginTime\": \"2019-02-04 11:02:56\",\n \"estimateDockingEndTime\": \"2019-02-04 11:02:56\"\n },\n {\n \"prePort\": \"常州\",\n \"nextPort\": \"江阴\",\n \"estimateAnchorBeginTime\": \"2019-02-04 12:44:56\",\n \"estimateDockingBeginTime\": \"2019-02-04 18:44:56\",\n \"estimateDockingEndTime\": \"2019-02-04 18:44:56\"\n }\n ],\n \"stepIndex\": 0,\n \"startTime\": \"2019-01-29 20:48:56\"\n },\n \"processInstanceId\": \"ba238744-we70-12e8-ef4w-215f69sec253\",\n \"processDefinitionId\": \"VesselProcess:1:d4053a34-3r23-23e4-9324-1s234c14232w\",\n \"serviceFullName\": \"coordinate the redezvous port\",\n \"appVersion\": \"v1.0.1\",\n \"activityElementId\": \"w3321r28-5jd0-1s58-s834-218d3h3n42o9\",\n \"appName\": \"Shipping Company\",\n \"serviceName\": \"coodinate-rend-port\",\n \"outBoundVariables\": [\n \"rendzvous_port\",\n \"timeStamp\",\n \"warehousing_cost\",\n \"postage_cost\"\n ]\n }\n}"
},
"url": {
"raw": "ssp-lambda:3000",
"host": [
"ssp-lambda"
],
"port": "3000"
},
"description": ""
},
"response": []
},
{
"name": "event: RENDZVOUS_PORT_UPDATE",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"event\": {\n \"event_type\": \"RENDZVOUS_PORT_UPDATE\",\n \"event_id\": \"2221\"\n },\n \"context\": {\n \"context\": {\n \"vid\": \"413362260\",\n \"timeStamp\": 8215.56,\n \"processInstanceId\": \"ba238744-we70-12e8-ef4w-215f69sec253\",\n \"processDefinitionId\": \"VesselProcess:1:d4053a34-3r23-23e4-9324-1s234c14232w\",\n \"warehousing_cost\": 5278.24,\n \"activityElementId\": \"w3321r28-5jd0-1s58-s834-218d3h3n42o9\",\n \"postage_cost\": 2315.56,\n \"appName\": \"mlc\",\n \"rendzvous_port\": \"安庆\"\n }\n }\n}"
},
"url": {
"raw": "ssp-lambda:3000",
"host": [
"ssp-lambda"
],
"port": "3000"
},
"description": ""
},
"response": []
},
{
"name": "start vessel-iot-simulator",
"request": {
"method": "POST",
"header": [],
"body": {},
"url": {
"raw": "ssp-vessel-iot:8000/vessel-iot-hub/start",
"host": [
"ssp-vessel-iot"
],
"port": "8000",
"path": [
"vessel-iot-hub",
"start"
]
},
"description": ""
},
"response": []
},
{
"name": "ssp-lambda:3000",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"event\": {\n \"event_type\": \"RENDZVOUS_PORT_UPDATE\",\n \"event_id\": \"2222\"\n },\n \"context\": {\n \"context\": {\n \"timeStamp\": 8215.56,\n \"processInstanceId\": \"sd923864-89ef-a283-edw2-s8d5n3e2345f\",\n \"processDefinitionId\": \"WagonProcess:2:sk7293d5-4b62-347s-8d24-sj5x23ld726s\",\n \"wid\": \"W51252378\",\n \"warehousing_cost\": 1478.24,\n \"activityElementId\": null,\n \"postage_cost\": 5215.56,\n \"appName\": \"mlc\",\n \"rendzvous_port\": \"安庆\"\n }\n }\n}"
},
"url": {
"raw": "ssp-lambda:3000",
"host": [
"ssp-lambda"
],
"port": "3000"
},
"description": ""
},
"response": []
}
]
},
{
"name": "manager",
"description": "",
"item": [
{
"name": "ssp-manager:8000/manager/vessel/iot-data",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"test\" : \"ok\"\n}"
},
"url": {
"raw": "ssp-manager:8000/manager/vessel/iot-data",
"host": [
"ssp-manager"
],
"port": "8000",
"path": [
"manager",
"vessel",
"iot-data"
]
},
"description": ""
},
"response": []
},
{
"name": "VESSEL_DELAY: http_trigger",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"event\": {\n \"event_type\": \"VESSEL_DELAY\",\n \"event_id\": \"1113\"\n },\n \"context\": {\n \"vid\": \"413362260\",\n \"timeStamp\": \"2019-02-01 02:51:15\",\n \"reason\": \"HUMAN_NOTIFICATION\",\n \"dx\": 18000000,\n \"stepIndex\": 3,\n \"dy\": -7200000,\n \"unit_type\": \"MILLs\",\n \"steps\": [\n {\n \"prePort\": \"起始点\",\n \"nextPort\": \"黄石\",\n \"voyagingDuration\": 20040000,\n \"anchoringDuration\": 18000000,\n \"dockingDuration\": 39600000\n },\n {\n \"prePort\": \"黄石\",\n \"nextPort\": \"武穴\",\n \"voyagingDuration\": 12720000,\n \"anchoringDuration\": 18000000,\n \"dockingDuration\": 39600000\n },\n {\n \"prePort\": \"武穴\",\n \"nextPort\": \"九江\",\n \"voyagingDuration\": 7920000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"九江\",\n \"nextPort\": \"安庆\",\n \"voyagingDuration\": 30960000,\n \"anchoringDuration\": 18000000,\n \"dockingDuration\": 39600000\n },\n {\n \"prePort\": \"安庆\",\n \"nextPort\": \"池州\",\n \"voyagingDuration\": 12840000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"池州\",\n \"nextPort\": \"铜陵\",\n \"voyagingDuration\": 6960000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"铜陵\",\n \"nextPort\": \"芜湖\",\n \"voyagingDuration\": 20040000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"芜湖\",\n \"nextPort\": \"马鞍山\",\n \"voyagingDuration\": 10560000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"马鞍山\",\n \"nextPort\": \"南京\",\n \"voyagingDuration\": 15840000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"南京\",\n \"nextPort\": \"仪征\",\n \"voyagingDuration\": 4320000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"仪征\",\n \"nextPort\": \"镇江\",\n \"voyagingDuration\": 4440000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"镇江\",\n \"nextPort\": \"泰州\",\n \"voyagingDuration\": 12120000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"泰州\",\n \"nextPort\": \"常州\",\n \"voyagingDuration\": 7680000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n },\n {\n \"prePort\": \"常州\",\n \"nextPort\": \"江阴\",\n \"voyagingDuration\": 6120000,\n \"anchoringDuration\": 0,\n \"dockingDuration\": 21600000\n }\n ],\n \"status\": \"VOYAGING\"\n }\n}"
},
"url": {
"raw": "ssp-manager:8001/manager/vessel/delay",
"host": [
"ssp-manager"
],
"port": "8001",
"path": [
"manager",
"vessel",
"delay"
]
},
"description": ""
},
"response": []
},
{
"name": "hello manager",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "ssp-manager:8000/manager/hello",
"host": [
"ssp-manager"
],
"port": "8000",
"path": [
"manager",
"hello"
]
},
"description": ""
},
"response": []
}
]
},
{
"name": "mlc",
"description": "",
"item": [
{
"name": "hello mlc",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "ssp-mlc:8000/mlc/hello",
"host": [
"ssp-mlc"
],
"port": "8000",
"path": [
"mlc",
"hello"
]
},
"description": ""
},
"response": []
}
]
},
{
"name": "logistics",
"description": "",
"item": [
{
"name": "hello,logistics",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "ssp-logistics:8000/logistics/hello",
"host": [
"ssp-logistics"
],
"port": "8000",
"path": [
"logistics",
"hello"
]
},
"description": ""
},
"response": []
}
]
}
]
}