-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.html.json
106 lines (106 loc) · 3.58 KB
/
admin.html.json
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
{
"ApiSpecs": [
{
"HttpVerb": "PUT",
"Path": "/api/v1/admin/change_user_role",
"Calls": [
{
"Id": 0,
"CurrentPath": "/api/v1/admin/change_user_role",
"MethodType": "PUT",
"PostForm": null,
"RequestHeader": {
"Content-Type": " application/json\r",
"Cookie": " name=root;sig=dd81ea033c2d11e6a95d0242ac11000c\r",
"X-Forwarded-For": " "
},
"CommonRequestHeaders": null,
"ResponseHeader": {
"Access-Control-Allow-Headers": "Content-Type,Token",
"Access-Control-Allow-Origin": "*",
"Content-Type": "application/json; charset=utf-8"
},
"RequestUrlParams": {},
"RequestBody": "{\"user_id\": 14, \"admin\": \"no\"}",
"ResponseBody": "{\"message\":\"user role update sccuessful, affect row: 1\"}",
"ResponseCode": 200
},
{
"Id": 0,
"CurrentPath": "/api/v1/admin/change_user_role",
"MethodType": "PUT",
"PostForm": null,
"RequestHeader": {
"Content-Type": " application/json\r",
"Cookie": " name=root;sig=dd81ea033c2d11e6a95d0242ac11000c\r",
"X-Forwarded-For": " "
},
"CommonRequestHeaders": null,
"ResponseHeader": {
"Access-Control-Allow-Headers": "Content-Type,Token",
"Access-Control-Allow-Origin": "*",
"Content-Type": "application/json; charset=utf-8"
},
"RequestUrlParams": {},
"RequestBody": "{\"user_id\": 14, \"admin\": \"yes\"}",
"ResponseBody": "{\"message\":\"user role update sccuessful, affect row: 1\"}",
"ResponseCode": 200
}
]
},
{
"HttpVerb": "PUT",
"Path": "/api/v1/admin/change_user_passwd",
"Calls": [
{
"Id": 0,
"CurrentPath": "/api/v1/admin/change_user_passwd",
"MethodType": "PUT",
"PostForm": null,
"RequestHeader": {
"Content-Type": " application/json\r",
"Cookie": " name=root;sig=dd81ea033c2d11e6a95d0242ac11000c\r",
"X-Forwarded-For": " "
},
"CommonRequestHeaders": null,
"ResponseHeader": {
"Access-Control-Allow-Headers": "Content-Type,Token",
"Access-Control-Allow-Origin": "*",
"Content-Type": "application/json; charset=utf-8"
},
"RequestUrlParams": {},
"RequestBody": "{\"user_id\": 14, \"password\": \"myhung\"}",
"ResponseBody": "{\"message\":\"password updated!\"}",
"ResponseCode": 200
}
]
},
{
"HttpVerb": "DELETE",
"Path": "/api/v1/admin/delete_user",
"Calls": [
{
"Id": 1,
"CurrentPath": "/api/v1/admin/delete_user",
"MethodType": "DELETE",
"PostForm": null,
"RequestHeader": {
"Content-Type": " application/json\r",
"Cookie": " name=root;sig=dd81ea033c2d11e6a95d0242ac11000c\r",
"X-Forwarded-For": " "
},
"CommonRequestHeaders": null,
"ResponseHeader": {
"Access-Control-Allow-Headers": "Content-Type,Token",
"Access-Control-Allow-Origin": "*",
"Content-Type": "application/json; charset=utf-8"
},
"RequestUrlParams": {},
"RequestBody": "{\"user_id\": 31}",
"ResponseBody": "{\"message\":\"user 31 has been delete, affect row: 1\"}",
"ResponseCode": 200
}
]
}
]
}