-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.yaml
136 lines (136 loc) · 3.48 KB
/
api.yaml
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
openapi: 3.0.0
servers:
- description: SwaggerHub API Auto Mocking
url: https://virtserver.swaggerhub.com/rafa2/HelmChartsManager/1.0.0
info:
description: Helps to manage Helm charts in a Kubernetes cluster
version: "1.0.0"
title: Helm Charts manager API
tags:
- name: HelmCharts
description: Helm charts
paths:
/charts:
get:
tags:
- HelmCharts
summary: List available charts
operationId: listAvailableCharts
description: Full list of available charts
responses:
'200':
description: Available charts
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ChartInfo'
'400':
description: bad input parameter
post:
tags:
- HelmCharts
summary: Install a new chart
operationId: installNewChart
description: Install a new chart
responses:
'202':
description: request for installation information
content:
application/json:
schema:
$ref: '#/components/schemas/ChartInstallationRequestData'
'400':
description: 'invalid input, object invalid'
'409':
description: an existing chart already exists
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ChartRequest'
description: Chart data to be installed
/charts/installed:
get:
tags:
- HelmCharts
summary: List installed charts
operationId: listInstalledCharts
description: Full list of installed charts in cluster
responses:
'200':
description: Installed charts
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ChartInfo'
'400':
description: bad input parameter
/charts/installed/{chartId}:
get:
tags:
- HelmCharts
summary: Get chart id installation info
operationId: getInstalledChart
description: Installation data about the chart
parameters:
- in: path
name: chartId
schema:
type: string
required: true
description: Chart id
responses:
'200':
description: Installed chart
content:
application/json:
schema:
$ref: '#/components/schemas/ChartInstallationInfo'
'400':
description: bad input parameter
components:
schemas:
ChartInstallationInfo:
type: object
properties:
id:
type: string
example: Chart id
name:
type: string
example: Chart name
status:
type: string
example: '20%'
ChartInfo:
type: object
properties:
id:
type: string
example: Chart id
name:
type: string
example: Chart name
ChartInstallationRequestData:
type: object
properties:
id:
type: string
format: uuid
example: '43d250cb-76db-4cde-945b-33ee36b99088'
ChartRequest:
type: object
required:
- id
- name
properties:
id:
type: string
example: Chart id
name:
type: string
example: Installation name