-
Notifications
You must be signed in to change notification settings - Fork 0
/
requests
83 lines (66 loc) · 1.62 KB
/
requests
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
################################ containersService ################################
GET containers by origin destination
localhost:5000/api/spaces/getAvailableSpaces?country=italy&destinationCountry=china
POST create containers
- localhost:5000/api/spaces/createContainers
-
{
"containers": [
{
"currentCountry": "spain",
"destCountry": "china",
"shipId": 1,
"xDim": 500,
"yDim": 500,
"zDim": 400,
"maxKg": 1000
},
{
"currentCountry": "italy",
"destCountry": "china",
"shipId": 2,
"xDim": 500,
"yDim": 500,
"zDim": 400,
"maxKg": 500
},
{
"currentCountry": "italy",
"destCountry": "china",
"shipId": 3,
"xDim": 500,
"yDim": 500,
"zDim": 100,
"maxKg": 1000
},
{
"currentCountry": "italy",
"destCountry": "china",
"shipId": 3,
"xDim": 800,
"yDim": 800,
"zDim": 800,
"maxKg": 1000
}
]
}
POST buy space
- localhost:5000/api/spaces/buySpace
-
{
"containerId": "626ec485cdccba27c808e14c",
"sellInformation": {
"userId": "gerald2",
"kg": 10,
"dimensions": [20, 10, 5]
}
}
################################ shipService ################################
POST update ship status
- localhost:5001/api/ship/status
-
{
"shipId": "4",
"status": "departued",
"currentCountry": "china"
}