blob: 0f3152e666d0fd2fe9ac4bbdae7b713972e72729 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
### Request JSON:
POST http://localhost:3000/hello
Content-Type: application/json
{
"name": "Alex"
}
### Response:
# http://localhost:3000/hello
#
#{"message":"Hello, Alex!"}
### Request Form:
POST http://localhost:3000/hello
Content-Type: application/x-www-form-urlencoded
name=Alex
### Response:
# http://localhost:3000/hello
#
#{"message":"Hello, Alex!"}
|