-
Notifications
You must be signed in to change notification settings - Fork 0
/
req.http
106 lines (71 loc) · 2.09 KB
/
req.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
POST http://localhost:9999/form
Content-Type: application/x-www-form-urlencoded
id=999&value=content
###
POST http://localhost:9999/user/save
Content-Type: application/json
{
"name": "ohy",
"email": "[email protected]"
}
###
GET http://localhost:9999/admin/mw
Content-Type: application/json
Authorization: Basic {{username}} {{password}}
###
GET http://localhost:9999/ctx
###
GET http://localhost:9999/createCookie
###
POST http://localhost:9999/valid
Content-Type: application/json
{
"name": "ohy",
"email": "ohy@errordomain"
}
###
GET http://localhost:9999/respType
###
GET http://localhost:9999/group/test
### 测试signup
POST http://localhost:9999/signup
Content-Type: application/json
{
"password": "ohy",
"email": "ohy@errordomain"
}
### 测试登录 login
POST http://localhost:9999/login
Content-Type: application/json
{
"password": "ohy",
"email": "ohy@errordomain"
}
### 测试关注某人
POST http://localhost:9999/follow/6673953ef080f449d0c26c35
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MTkxMTA1MDksImlkIjoiNjY3Mzk1M2VmMDgwZjQ0OWQwYzI2YzM1In0.iDCDaEQYlIsXVgjbdIwht1g8R_20IcdXUAsHqDp6eOI
### 测试发送消息
POST http://localhost:9999/post
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MTkxMTA1MDksImlkIjoiNjY3Mzk1M2VmMDgwZjQ0OWQwYzI2YzM1In0.iDCDaEQYlIsXVgjbdIwht1g8R_20IcdXUAsHqDp6eOI
{
"message": "你好啊~",
"to": "ohy@errordomain"
}
### 测试历史消息分页
GET http://localhost:9999/posts/1/2
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MTkxMTA1MDksImlkIjoiNjY3Mzk1M2VmMDgwZjQ0OWQwYzI2YzM1In0.iDCDaEQYlIsXVgjbdIwht1g8R_20IcdXUAsHqDp6eOI
### 测试
GET http://localhost:9999/stats
### 测试iris基本使用
GET http://localhost:9999/cfg
### 测试iris获取路径参数
GET http://localhost:9999/testPath02/100
### 测试自定义宏
GET http://localhost:9999/jwdLint/36.000/-50.350
### 测试自定义宏2
GET http://localhost:9999/max/ab
### 测试自定义宏3
GET http://localhost:9999/username/kiwiii
### 测试404
GET http://localhost:9999/xxxxx