Skip to content

Commit c6ac14f

Browse files
committed
gg
1 parent 9f11795 commit c6ac14f

File tree

2 files changed

+176
-82
lines changed

2 files changed

+176
-82
lines changed

specs/app-labels.yaml

Lines changed: 87 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,9 @@ paths:
2121
type: string
2222
description: status
2323
result:
24-
allOf:
25-
- type: object
26-
properties:
27-
appId:
28-
type: integer
29-
description: unique application id
30-
required:
31-
- appId
32-
- $ref: '#/components/schemas/AppLabel'
24+
type: array
25+
items:
26+
$ref: '#/components/schemas/AppLabel'
3327
default:
3428
description: unexpected error
3529
content:
@@ -62,15 +56,14 @@ paths:
6256
type: string
6357
description: status
6458
result:
65-
type: object
66-
description: meta info project name and labels
6759
$ref: '#/components/schemas/AppMetaInfo'
6860
default:
6961
description: unexpected error
7062
content:
7163
application/json:
7264
schema:
7365
$ref: '#/components/schemas/ErrorResponse'
66+
7467
/orchestrator/helm/meta/info/{appId}:
7568
get:
7669
description: application info for all types of helm apps
@@ -95,9 +88,22 @@ paths:
9588
type: string
9689
description: status
9790
result:
98-
type: object
99-
description: meta info project name and labels
100-
$ref: '#/components/schemas/AppMetaInfo'
91+
allOf:
92+
- $ref: '#/components/schemas/AppMetaInfo'
93+
- type: object
94+
properties:
95+
chartUsed:
96+
$ref: '#/components/schemas/ChartUsed'
97+
gitMaterials:
98+
type: array
99+
items:
100+
$ref: '#/components/schemas/GitMaterialMeta'
101+
default:
102+
description: unexpected error
103+
content:
104+
application/json:
105+
schema:
106+
$ref: '#/components/schemas/ErrorResponse'
101107

102108
# components mentioned below
103109
components:
@@ -107,6 +113,7 @@ components:
107113
required:
108114
- key
109115
- value
116+
- propagate
110117
properties:
111118
key:
112119
type: string
@@ -118,20 +125,6 @@ components:
118125
type: boolean
119126
description: Whether to propagate to kubernetes resources
120127

121-
AppLabels:
122-
type: object
123-
required:
124-
- appId
125-
- labels
126-
properties:
127-
appId:
128-
type: integer
129-
description: application id
130-
labels:
131-
type: array
132-
items:
133-
$ref: '#/components/schemas/AppLabel'
134-
135128
AppMetaInfo:
136129
type: object
137130
required:
@@ -141,7 +134,7 @@ components:
141134
- projectName
142135
- createdOn
143136
- createdBy
144-
- labels
137+
- active
145138
properties:
146139
appId:
147140
type: integer
@@ -155,16 +148,81 @@ components:
155148
projectName:
156149
type: string
157150
description: team/project name
151+
description:
152+
type: string
153+
description: app description
158154
labels:
159155
type: array
160156
items:
161157
$ref: '#/components/schemas/AppLabel'
162158
createdOn:
163159
type: string
160+
format: date-time
164161
description: app creation date
165162
createdBy:
166163
type: string
167164
description: app created by
165+
active:
166+
type: boolean
167+
description: whether app is active
168+
note:
169+
$ref: '#/components/schemas/GenericNoteResponse'
170+
171+
ChartUsed:
172+
type: object
173+
properties:
174+
appStoreChartName:
175+
type: string
176+
description: Name of the chart from app store
177+
appStoreChartId:
178+
type: integer
179+
description: ID of the chart from app store
180+
appStoreAppName:
181+
type: string
182+
description: Name of the app in app store
183+
appStoreAppVersion:
184+
type: string
185+
description: Version of the app in app store
186+
chartAvatar:
187+
type: string
188+
description: Avatar/icon of the chart
189+
190+
GitMaterialMeta:
191+
type: object
192+
properties:
193+
displayName:
194+
type: string
195+
description: Display name of the git material
196+
redirectionUrl:
197+
type: string
198+
description: HTTPS URL for redirection
199+
originalUrl:
200+
type: string
201+
description: Original git URL
202+
203+
GenericNoteResponse:
204+
type: object
205+
properties:
206+
id:
207+
type: integer
208+
description: Note ID
209+
note:
210+
type: string
211+
description: Note content
212+
createdOn:
213+
type: string
214+
format: date-time
215+
description: Creation timestamp
216+
createdBy:
217+
type: string
218+
description: Creator's email
219+
updatedOn:
220+
type: string
221+
format: date-time
222+
description: Last update timestamp
223+
updatedBy:
224+
type: string
225+
description: Last updater's email
168226

169227
ErrorResponse:
170228
required:

0 commit comments

Comments
 (0)