-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
.poodle.toml
180 lines (162 loc) · 4.49 KB
/
.poodle.toml
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# API Definition For Beetle
# --------------------------
#
# In order to use this file:
# 1. Check & Install https://github.com/Clivern/Poodle
#
# 2. Now you can use poodle to interact with your local or hosted beetle.
# $ poodle call -f .poodle.toml
#
[Main]
id = "clivern_beetle"
name = "Clivern - Beetle"
description = "Beetle API Definitions"
timeout = "30s"
service_url = "{$serviceURL:http://127.0.0.1:8080}"
# These headers will be applied to all endpoints http calls
headers = []
[Security]
# Supported Types are basic, bearer and api_key and none
scheme = "none"
[Security.Basic]
username = "{$authUsername:default}"
password = "{$authPassword:default}"
header = ["Authorization", "Basic base64(username:password)"]
[Security.ApiKey]
header = ["X-API-KEY", "{$authApiKey:default}"]
# In case of bearer authentication, it is recommended to create another
# service or endpoint to generate the bearer tokens
[Security.Bearer]
header = ["Authorization", "Bearer {$authBearerToken:default}"]
[[Endpoint]]
id = "GetSystemHealth"
name = "Get System Health"
description = ""
method = "get"
headers = [ ["Content-Type", "application/json"] ]
parameters = []
public = true
uri = "/_health"
body = ""
[[Endpoint]]
id = "GetSystemReadiness"
name = "Get System Readiness"
description = ""
method = "get"
headers = [ ["Content-Type", "application/json"] ]
parameters = []
public = true
uri = "/_ready"
body = ""
[[Endpoint]]
id = "GetMetrics"
name = "Get Metrics"
description = ""
method = "get"
headers = []
parameters = []
public = true
uri = "/metrics"
body = ""
[[Endpoint]]
id = "GetClusters"
name = "Get Clusters"
description = ""
method = "get"
headers = [ ["Content-Type", "application/json"] ]
parameters = []
public = true
uri = "/api/v1/cluster"
body = ""
[[Endpoint]]
id = "GetCluster"
name = "Get Cluster"
description = ""
method = "get"
headers = [ ["Content-Type", "application/json"] ]
parameters = []
public = true
uri = "/api/v1/cluster/{$clusterName}"
body = ""
[[Endpoint]]
id = "GetClusterNamespaces"
name = "Get Cluster Namespaces"
description = ""
method = "get"
headers = [ ["Content-Type", "application/json"] ]
parameters = []
public = true
uri = "/api/v1/cluster/{$clusterName}/namespace"
body = ""
[[Endpoint]]
id = "GetClusterNamespace"
name = "Get Cluster Namespace"
description = ""
method = "get"
headers = [ ["Content-Type", "application/json"] ]
parameters = []
public = true
uri = "/api/v1/cluster/{$clusterName}/namespace/{$namespaceName}"
body = ""
[[Endpoint]]
id = "GetNamespaceApplications"
name = "Get Namespace Applications"
description = ""
method = "get"
headers = [ ["Content-Type", "application/json"] ]
parameters = []
public = true
uri = "/api/v1/cluster/{$clusterName}/namespace/{$namespaceName}/app"
body = ""
[[Endpoint]]
id = "GetNamespaceApplicationByID"
name = "Get Namespace Application by ID"
description = ""
method = "get"
headers = [ ["Content-Type", "application/json"] ]
parameters = []
public = true
uri = "/api/v1/cluster/{$clusterName}/namespace/{$namespaceName}/app/{$applicationId}"
body = ""
[[Endpoint]]
id = "GetJobs"
name = "Get Jobs"
description = ""
method = "get"
headers = [ ["Content-Type", "application/json"] ]
parameters = []
public = true
uri = "/api/v1/job"
body = ""
[[Endpoint]]
id = "GetJobByUUID"
name = "Get Job by UUID"
description = ""
method = "get"
headers = [ ["Content-Type", "application/json"] ]
parameters = []
uri = "/api/v1/job/{$jobUUID}"
body = ""
[[Endpoint]]
id = "DeleteJobByUUID"
name = "Delete Job by UUID"
description = ""
method = "delete"
headers = [ ["Content-Type", "application/json"] ]
parameters = []
uri = "/api/v1/job/{$jobUUID}"
body = ""
[[Endpoint]]
id = "DeployApplicationById"
name = "Deploy Application By ID"
description = ""
method = "post"
headers = [ ["Content-Type", "application/json"] ]
parameters = []
uri = "/api/v1/cluster/{$clusterName}/namespace/{$namespaceName}/app/{$applicationId}/deployment"
body = """
{
"version":"{$version}",
"strategy":"{$strategy:recreate}"
}
"""