-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.http
36 lines (26 loc) · 960 Bytes
/
test.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
GET http://localhost:5000/rosters
###
GET http://localhost:5000/users
### 注册用户
POST http://localhost:5000/users
Content-Type: application/json
{
"fullname": "孙凌峰",
"name": "admin",
"password": "123",
"parent":"father",
"roster_id": "17"
}
### 用户登陆
GET http://192.168.1.29:5000/login HTTP/1.1
Authorization: Basic admin:123
### 用户登陆
POST http://192.168.1.29:5000/users/changepassword HTTP/1.1
Content-Type: application/json
x-access-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwdWJsaWNfaWQiOiJkN2I2MmFiYi1mZmM5LTQ4MjQtODQwNy02ODY4MjA5OGZjYmQiLCJleHAiOjE2MDIxNDU5OTJ9.cmbAidxlDy4oSOlUXX_pmVQc8ZfjoXA1HEl3Boa8d4A
{
"password":"1234"
}
### 用户登陆
GET http://192.168.1.29:5000/rosters/2 HTTP/1.1
x-access-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwdWJsaWNfaWQiOiJkN2I2MmFiYi1mZmM5LTQ4MjQtODQwNy02ODY4MjA5OGZjYmQiLCJleHAiOjE2MDIxNDU5OTJ9.cmbAidxlDy4oSOlUXX_pmVQc8ZfjoXA1HEl3Boa8d4A