-
Notifications
You must be signed in to change notification settings - Fork 12
/
Discovery.json
357 lines (357 loc) · 10 KB
/
Discovery.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
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Discovery internal schema for API documentation",
"description": "This schema describe the Discovery section of our build process - allowing to extend the application by including other APIs to display",
"type": "object",
"properties": {
"apis": {
"description": "List of API groups supported",
"type": "array",
"items": {
"$ref": "#/definitions/Group"
},
"minItems": 1
},
"tags": {
"description": "List of known tags",
"type": "array",
"items": {
"$ref": "#/definitions/Tag"
}
}
},
"required": [
"apis"
],
"definitions": {
"Group": {
"description": "Groups multiple APIs together. i.e. insights, openshift, etc",
"type": "object",
"properties": {
"id": {
"description": "Identifier of the group. i.e. insights",
"$ref": "#/definitions/id"
},
"name": {
"description": "Display name for the group. i.e. Hybrid Cloud Console and Insights",
"type": "string"
},
"apps": {
"description": "Apps within the group",
"type": "array",
"items": {
"$ref": "#/definitions/App"
},
"minItems": 1
}
},
"required": [
"id",
"name",
"apps"
]
},
"App": {
"description": "Applications whose API wants to be displayed",
"type": "object",
"properties": {
"id": {
"description": "Identifier of the application. i.e. cost-management",
"$ref": "#/definitions/id"
},
"name": {
"description": "Display name for the application. i.e. Cost Management",
"type": "string"
},
"description": {
"description": "Displayed description for the application.",
"type": "string",
"maxLength": 100
},
"consoleUrl": {
"description": "Base URL of the redhat console",
"type": "string"
},
"url": {
"description": "URL to the public API file",
"type": "string"
},
"useLocalFile": {
"description": "Decide if we should try to fetch the API or use the local file",
"type": "boolean"
},
"apiType": {
"description": "Type of the API",
"type": "string",
"enum": [ "openapi-v3", "openapi-v2", "graphql", "unknown" ]
},
"icon": {
"$ref": "#/definitions/icon"
},
"tags": {
"description": "Array of tag ids associated to this application",
"type": "array",
"items": {
"$ref": "#/definitions/id"
}
}
},
"required": [
"id",
"name",
"description",
"apiType"
],
"allOf": [
{
"$ref": "#/definitions/url-or-use-local-or-skip"
},
{
"$ref": "#/definitions/skip-with-reason"
}
]
},
"Tag": {
"type": "object",
"properties": {
"id": {
"$ref": "#/definitions/id"
},
"name": {
"type": "string"
},
"type": {
"description": "Type of tag",
"type": "string",
"enum": ["use-case", "service", "platform"]
}
},
"allOf": [
{
"$ref": "#/definitions/developers-redhat-com-taxonomy"
}
],
"required": [
"id",
"name",
"type"
]
},
"id": {
"type": "string",
"pattern": "^[a-z0-9_\\-]+$"
},
"icon": {
"type": "string",
"enum": [
"ansible",
"edge",
"insights",
"openshift",
"services",
"subscriptions"
]
},
"skip-with-reason": {
"type": "object",
"properties": {
"skip": {
"type": "boolean"
}
},
"dependencies": {
"skip": {
"anyOf": [
{
"type": "object",
"properties": {
"skip": {
"const": false
}
}
},
{
"type": "object",
"properties": {
"skipReason": {
"type": "string"
}
},
"required": ["skipReason"]
}
]
}
}
},
"url-or-use-local-or-skip": {
"description": "Should set at least url, skip=true or useLocalFile=true",
"anyOf": [
{
"type": "object",
"required": ["url"]
},
{
"type": "object",
"properties": {
"useLocalFile": {
"const": true
}
},
"required": [ "useLocalFile" ]
},
{
"type": "object",
"properties": {
"skip": {
"const": true
}
}
}
]
},
"developers-redhat-com-taxonomy": {
"properties": {
"dev-rh:taxonomy": {
"description": "Taxonomy terms as defined in 'Developers Product and Topic terms' document",
"properties": {
"product-line": {
"enum": [
"OpenShift"
]
},
"product": {
"enum": [
"Azure Red Hat OpenShift",
"Cloud services - Application services",
"Developer Sandbox for Red Hat OpenShift",
"Helm",
"Identity Management",
"Migration Toolkit for Runtimes",
"odo",
"OpenShift Connector",
"OpenShift Developer Console",
"Red Hat 3scale API Management",
"Red Hat Advanced Cluster Management for Kubernetes",
"Red Hat Advanced Cluster Security for Kubernetes",
"Red Hat Application Studio",
"Red Hat build of Eclipse Vert.x",
"Red Hat build of Node.js",
"Red Hat build of OpenJDK",
"Red Hat build of Quarkus.",
"Red Hat Ceph Storage",
"Red Hat CodeReady Dependency Analytics",
"Red Hat Directory Server",
"Red Hat OpenShift API Management",
"Red Hat OpenShift Data Foundation",
"Red Hat OpenShift Data Science",
"Red Hat OpenShift Database Access",
"Red Hat OpenShift Dev Spaces",
"Red Hat OpenShift GitOps",
"Red Hat OpenShift Local",
"Red Hat OpenShift Serverless",
"Red Hat OpenShift Service Mesh",
"Red Hat OpenShift Service on AWS",
"Red Hat OpenShift Streams for Apache Kafka",
"Red Hat Quay",
"Red Hat Single sign-on",
"Red Hat support for Spring Boot",
"Service Binding Operator",
"Red Hat AMQ",
"Red Hat Ansible Automation Platform",
"Red Hat CodeReady Linux Builder",
"Red Hat CodeReady Containers",
"Red Hat OpenShift Pipelines",
"Red Hat CodeReady Studio",
"CodeReady Toolchain",
"Red Hat CodeReady Workspaces",
"Container Development Kit",
"Red Hat Data Grid",
"Decision Manager",
"Developer Toolset",
"Fuse",
"JBoss Data Virtualization",
"Red Hat JBoss Enterprise Application Platform",
"Red Hat JBoss Web Server",
"Migration Toolkit for Applications",
"Mobile Application Platform",
"Red Hat OpenShift",
"OpenShift Runtimes",
"OpenShift Cloud Functions",
"Red Hat OpenShift Container Platform",
"OpenShift Container Storage",
"OpenShift.io",
"Process Automation Manager",
"RHEL",
"RHEL CoreOS",
"RHEL for SAP Solutions",
"Red Hat Software Collections",
"VSCode Plugins",
"Unspecified"
]
},
"topic": {
"enum": [
".NET",
"Big Data",
"Camel K",
"Compilers",
"Data Encapsulation",
"Data integration",
"Integration",
"Internet of Things",
"Kotlin",
"Open Data Hub",
"Performance",
"Programming languages",
"Runtimes",
"Rust",
"Serverless integration",
"Stream processing",
"Windows",
"Data Science",
"AI/ML",
"API Management",
"Automation",
"C",
"C#",
"C++",
"CI/CD",
"Containers",
"Developer Tools",
"DevOps",
"DevSecOps",
"Edge",
"Event-Driven",
"GitOps",
"Go",
"Helm",
"IDEs",
"Java",
"JavaScript",
"Linux",
"Kafka",
"Kubernetes",
"Microservices",
"Node.js",
"Operators",
"OpenShift",
"Open Source",
"PHP",
"Python",
"Quarkus",
"Ruby",
"Spring Boot",
"Service Mesh",
"Serverless",
"Security",
"Secure Coding",
"UI/UX",
"Unspecified"
]
}
}
}
}
}
}
}