Skip to content

Commit fba4a67

Browse files
committed
resolved app-labels.yaml
1 parent dd6741b commit fba4a67

File tree

2 files changed

+314
-66
lines changed

2 files changed

+314
-66
lines changed

specs/app-labels.yaml

Lines changed: 74 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,32 @@ openapi: "3.0.0"
22
info:
33
version: 1.0.0
44
title: Devtron Labs
5+
license:
6+
name: Apache 2.0
7+
url: https://www.apache.org/licenses/LICENSE-2.0.html
8+
servers:
9+
- url: http://localhost/orchestrator
10+
description: Local development server
11+
security:
12+
- ApiKeyAuth: []
513
paths:
614
/orchestrator/app/labels/list:
715
get:
8-
description: this api will return all the labels available in database.
16+
summary: List all app labels
17+
description: This API will return all the labels available in the database.
18+
operationId: listAppLabels
19+
security:
20+
- ApiKeyAuth: []
921
parameters: [ ]
1022
responses:
23+
'400':
24+
description: Bad request
25+
'401':
26+
description: Unauthorized
27+
'404':
28+
description: Not found
29+
'500':
30+
description: Internal server error
1131
'200':
1232
description: list response
1333
content:
@@ -39,7 +59,11 @@ paths:
3959

4060
/orchestrator/app/meta/info/{appId}:
4161
get:
42-
description: application basic info, projects and labels
62+
summary: Get application meta info
63+
description: Application basic info, projects and labels
64+
operationId: getAppMetaInfo
65+
security:
66+
- ApiKeyAuth: []
4367
parameters:
4468
- name: appId
4569
in: path
@@ -65,6 +89,14 @@ paths:
6589
type: object
6690
description: meta info project name and labels
6791
$ref: '#/components/schemas/AppMetaInfo'
92+
'400':
93+
description: Bad request
94+
'401':
95+
description: Unauthorized
96+
'404':
97+
description: Not found
98+
'500':
99+
description: Internal server error
68100
default:
69101
description: unexpected error
70102
content:
@@ -73,7 +105,11 @@ paths:
73105
$ref: '#/components/schemas/ErrorResponse'
74106
/orchestrator/helm/meta/info/{appId}:
75107
get:
76-
description: application info for all types of helm apps
108+
summary: Get Helm application meta info
109+
description: Application info for all types of Helm apps
110+
operationId: getHelmAppMetaInfo
111+
security:
112+
- ApiKeyAuth: []
77113
parameters:
78114
- name: appId
79115
in: path
@@ -98,9 +134,28 @@ paths:
98134
type: object
99135
description: meta info project name and labels
100136
$ref: '#/components/schemas/AppMetaInfo'
137+
'400':
138+
description: Bad request
139+
'401':
140+
description: Unauthorized
141+
'404':
142+
description: Not found
143+
'500':
144+
description: Internal server error
145+
default:
146+
description: unexpected error
147+
content:
148+
application/json:
149+
schema:
150+
$ref: '#/components/schemas/ErrorResponse'
101151

102152
# components mentioned below
103153
components:
154+
securitySchemes:
155+
ApiKeyAuth:
156+
type: apiKey
157+
in: header
158+
name: Authorization
104159
schemas:
105160
AppLabel:
106161
type: object
@@ -167,35 +222,36 @@ components:
167222
description: app created by
168223

169224
ErrorResponse:
170-
required:
171-
- code
172-
- status
225+
type: object
173226
properties:
174227
code:
175228
type: integer
176229
format: int32
177-
description: Error code
178230
status:
179231
type: string
180-
description: Error message
232+
result:
233+
type: object
234+
nullable: true
181235
errors:
182236
type: array
183-
description: errors
184237
items:
185-
$ref: '#/components/schemas/Error'
238+
type: object
239+
properties:
240+
userMessage:
241+
type: string
242+
nullable: true
243+
internalMessage:
244+
type: string
245+
nullable: true
186246

187247
Error:
188248
required:
189249
- code
190-
- status
250+
- message
191251
properties:
192252
code:
193253
type: integer
194-
format: int32
195-
description: Error internal code
196-
internalMessage:
197-
type: string
198-
description: Error internal message
199-
userMessage:
254+
description: Error code
255+
message:
200256
type: string
201-
description: Error user message
257+
description: Error message

0 commit comments

Comments
 (0)