-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.html.json
96 lines (96 loc) · 3.61 KB
/
plugin.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
{
"ApiSpecs": [
{
"HttpVerb": "POST",
"Path": "/api/v1/plugin",
"Calls": [
{
"Id": 0,
"CurrentPath": "/api/v1/plugin",
"MethodType": "POST",
"PostForm": null,
"RequestHeader": {
"Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
"Content-Type": " application/json\r",
"X-Forwarded-For": " 127.0.0.1\r"
},
"CommonRequestHeaders": null,
"ResponseHeader": {
"Access-Control-Allow-Credentials": "true",
"Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
"Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
"Access-Control-Allow-Origin": "*",
"Access-Control-Expose-Headers": "Content-Length",
"Access-Control-Max-Age": "86400",
"Content-Type": "application/json; charset=utf-8"
},
"RequestUrlParams": {},
"RequestBody": "{\"hostgroup_id\":343,\"dir_path\":\"testpath\"}",
"ResponseBody": "{\"id\":1501,\"grp_id\":343,\"dir\":\"testpath\",\"create_user\":\"root\"}",
"ResponseCode": 200
}
]
},
{
"HttpVerb": "GET",
"Path": "/api/v1/hostgroup/343/plugins",
"Calls": [
{
"Id": 1,
"CurrentPath": "/api/v1/hostgroup/343/plugins",
"MethodType": "GET",
"PostForm": null,
"RequestHeader": {
"Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
"X-Forwarded-For": " 127.0.0.1\r"
},
"CommonRequestHeaders": null,
"ResponseHeader": {
"Access-Control-Allow-Credentials": "true",
"Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
"Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
"Access-Control-Allow-Origin": "*",
"Access-Control-Expose-Headers": "Content-Length",
"Access-Control-Max-Age": "86400",
"Content-Type": "application/json; charset=utf-8"
},
"RequestUrlParams": {},
"RequestBody": "",
"ResponseBody": "[{\"id\":1499,\"grp_id\":343,\"dir\":\"testpath\",\"create_user\":\"root\"},{\"id\":1501,\"grp_id\":343,\"dir\":\"testpath\",\"create_user\":\"root\"}]",
"ResponseCode": 200
}
]
},
{
"HttpVerb": "DELETE",
"Path": "/api/v1/plugin/1501",
"Calls": [
{
"Id": 2,
"CurrentPath": "/api/v1/plugin/1501",
"MethodType": "DELETE",
"PostForm": null,
"RequestHeader": {
"Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
"Content-Type": " application/json\r",
"X-Forwarded-For": " 127.0.0.1\r"
},
"CommonRequestHeaders": null,
"ResponseHeader": {
"Access-Control-Allow-Credentials": "true",
"Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
"Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
"Access-Control-Allow-Origin": "*",
"Access-Control-Expose-Headers": "Content-Length",
"Access-Control-Max-Age": "86400",
"Content-Type": "application/json; charset=utf-8"
},
"RequestUrlParams": {},
"RequestBody": "",
"ResponseBody": "{\"message\":\"plugin:1501 is deleted\"}",
"ResponseCode": 200
}
]
}
]
}