-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathexample.http
49 lines (38 loc) · 839 Bytes
/
example.http
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
# REST Client allows you to send HTTP request and view the response in Visual Studio Code directly.
# see: https://github.com/Huachao/vscode-restclient/
@host = http://127.0.0.1:5001
###
GET {{host}}/api/user?id:le=3&name:nc=aa&_join=user_address
###
GET {{host}}/api/user/1
###
POST {{host}}/api/user
Content-Type: application/json
{
"name": "name123",
"key2": null,
"key3": "{\"aa\": 123}"
}
###
PUT {{host}}/api/user/1
Content-Type: application/json
{
"name":"aaname1",
"ctime1": "2021 10 10 10:10",
"ctime2": "2021/11/11",
"ctime3": "12:12:12",
"key_float": 12.123,
"age": 123,
"enabled": null
}
###
GET {{host}}/api/user_address
###
POST {{host}}/api/user_address
Content-Type: application/json
{
"user_id": 22,
"address":"address444"
}
###
DELETE {{host}}/api/user_address/1