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 ae9a52e

Browse files
Create readme.md
1 parent e4fe293 commit ae9a52e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Creating Functions
2+
3+
GET -> `http://localhost:8080/getStation/100A`
4+
5+
```json
6+
{
7+
"stationId": "100A",
8+
"mileMaker": 112.5,
9+
"stallCount": 2
10+
}
11+
```
12+
13+
POST ->
14+
15+
```sh
16+
curl --location --request POST 'http://localhost:8080/getStation' \
17+
--header 'Content-Type: text/plain' \
18+
--header 'Cookie: JSESSIONID=478DA3869AC127A8DBC6A86B025D8BB4' \
19+
--data-raw '100A'
20+
```
21+
22+
Response:
23+
```
24+
{
25+
"stationId": "100A",
26+
"mileMaker": 112.5,
27+
"stallCount": 2
28+
}
29+
```
30+

0 commit comments

Comments
(0)

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