@@ -28,3 +28,79 @@ Response:
28
28
}
29
29
```
30
30
31
+ GET -> ` http://localhost:8080/getTollStations `
32
+
33
+ ``` json
34
+ [
35
+ {
36
+ "stationId" : " 100A" ,
37
+ "mileMaker" : 112.5 ,
38
+ "stallCount" : 2
39
+ },
40
+ {
41
+ "stationId" : " 111C" ,
42
+ "mileMaker" : 124.0 ,
43
+ "stallCount" : 4
44
+ },
45
+ {
46
+ "stationId" : " 112C" ,
47
+ "mileMaker" : 126.0 ,
48
+ "stallCount" : 2
49
+ }
50
+ ]
51
+ ```
52
+
53
+ POST ->
54
+
55
+ ``` sh
56
+ curl --location --request POST ' http://localhost:8080/getStation' \
57
+ --header ' Content-Type: text/plain' \
58
+ --header ' Cookie: JSESSIONID=478DA3869AC127A8DBC6A86B025D8BB4' \
59
+ --data-raw ' 100A'
60
+ ```
61
+
62
+ Response:
63
+ ``` json
64
+ {
65
+ "stationId" : " 100A" ,
66
+ "mileMaker" : 112.5 ,
67
+ "stallCount" : 2
68
+ }
69
+ ```
70
+
71
+
72
+
73
+ POST ->
74
+
75
+ ``` sh
76
+ curl --location --request POST ' http://localhost:8080/processListOfTollRecordsReactive' \
77
+ --header ' Content-Type: application/json' \
78
+ --header ' Cookie: JSESSIONID=478DA3869AC127A8DBC6A86B025D8BB4' \
79
+ --data-raw ' [
80
+ {
81
+ "stationId": "151A",
82
+ "licensePlate": "MH 27 AR 1111",
83
+ "timestamp": "2022年05月05日T08:00:00"
84
+ },
85
+ {
86
+ "stationId": "152A",
87
+ "licensePlate": "MH 31 MH 1111",
88
+ "timestamp": "2022年05月05日T08:00:00"
89
+ }
90
+ ]'
91
+ ```
92
+
93
+ POST ->
94
+
95
+ ``` sh
96
+ curl --location --request POST ' http://localhost:8080/processTollRecordReactive' \
97
+ --header ' Content-Type: application/json' \
98
+ --header ' Cookie: JSESSIONID=478DA3869AC127A8DBC6A86B025D8BB4' \
99
+ --data-raw ' {
100
+ "stationId": "150A",
101
+ "licensePlate": "MH 27 AR 1111",
102
+ "timestamp": "2022年05月05日T08:00:00"
103
+ }'
104
+ ```
105
+
106
+
0 commit comments