-
Notifications
You must be signed in to change notification settings - Fork 11
/
.http
135 lines (99 loc) · 2.55 KB
/
.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# 接口和Content-Type不能换行
@createdAt = {{$datetime iso8601}}
@token = Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTMsInVzZXJuYW1lIjoidGVzdCIsInVzZXJUeXBlIjoxLCJlbWFpbCI6InljX21pY3JvX2Zyb250QDE2My5jb20iLCJmcmVlemVkIjowLCJhdmF0YXIiOiIiLCJkZXNjIjoiIiwiY3JlYXRlVGltZSI6IjIwMjQtMDktMjFUMDM6MDU6MDAuMDU1WiIsImlhdCI6MTcyNjg4NzkwNywiZXhwIjoxNzI3NDkyNzA3fQ.oyAYdK3jQgnfBgfuMGxeQqhfJHVo9exxZZ8NQf-l8qA
# 注册用户
POST http://localhost:3332/sys/registry
Content-Type: application/json
{
"username": "test1",
"password": "a123456",
"confirmPassword": "a123456",
"email": "[email protected]",
"code": 599485
}
###
# 发送注册验证码
GET http://localhost:3332/sys/[email protected]
Authorization: {{token}}
###
# 用户登录
POST http://localhost:3332/api/sys/login
Content-Type: application/json
{
"username": "test",
"password": "test"
}
###
# 发送找回密码验证码
GET http://localhost:3332/api/sys/[email protected]
###
# 找回密码
POST http://localhost:3332/api/sys/forgot
Content-Type: application/json
{
"username": "test",
"password": "test2",
"confirmPassword": "test2",
"email": "[email protected]",
"code": 143495
}
###
// 查询用户
GET http://localhost:3332/api/user/list?page=1&pageSize=10
Authorization: {{token}}
###
// 更新用户
PATCH http://localhost:3332/api/user/edit
Content-Type: application/json
Authorization: {{token}}
{
"id": 4,
"username": "Minnie",
"email": "[email protected]"
}
###
// 修改密码
POST http://localhost:3332/api/sys/forgot
Content-Type: application/json
Authorization: {{token}}
{
"password": "jmin000",
"confirmPassword": "jmin000",
"email": "[email protected]",
"code": "211781"
}
###
// 删除用户
DELETE http://localhost:3332/api/user/4
Authorization: {{token}}
###
// 创建角色
POST http://localhost:3332/api/role/create
Authorization: {{token}}
Content-Type: application/json
{
"name": "管理员",
"desc": "我是管理员",
"permissions": [1,2,3]
}
###
// 删除角色
DELETE http://localhost:3332/api/role/2
Authorization: {{token}}
###
// 获取用户功能权限列表
GET http://localhost:3332/api/permission/list
Authorization: {{token}}
###
// 开单
POST http://localhost:3332/api/order/create
Content-Type: application/json
Authorization: {{token}}
{
"productList": [
{ "name": "电饭煲2342xxx", "price": 0.1, "id": 1}
],
"discount": 0.8
}
###
GET http://localhost:3332/api/crawler/analysis-url?url=https://item.jd.com/14283389.html