-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.http
More file actions
41 lines (28 loc) · 709 Bytes
/
Copy pathtest.http
File metadata and controls
41 lines (28 loc) · 709 Bytes
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
@host = localhost:5000
### Register
POST http://{{host}}/api/User/Register HTTP/1.1
Content-Type: application/json
{
"userName": "test",
"password": "111111"
}
### Login
# @name login
POST http://{{host}}/api/User/Login HTTP/1.1
Content-Type: application/json
{
"userName": "test",
"password": "111111"
}
### GetUserInfo
GET http://{{host}}/api/User/UserInfo HTTP/1.1
Authorization: Bearer {{login.response.body.data.access_token}}
### Update UserInfo
POST http://{{host}}/api/User/UserInfo HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{login.response.body.data.access_token}}
{
"name": "测试",
"mobile": "13900000000",
"email": "test1@test.com"
}