Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c077ab8

Browse files
Update readme.md
1 parent ed6f760 commit c077ab8

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

‎7.creating-functions/web-functions/readme.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,79 @@ Response:
2828
}
2929
```
3030

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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /