Skip to content

Commit d18e91f

Browse files
committed
refact
1 parent 696d440 commit d18e91f

File tree

4 files changed

+390
-1377
lines changed

4 files changed

+390
-1377
lines changed

specs/application/get-app.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,44 @@ paths:
163163
schema:
164164
$ref: '#/components/schemas/Error'
165165

166+
/app/material/delete:
167+
post:
168+
description: Delete Git Material
169+
operationId: DeleteMaterial
170+
requestBody:
171+
description: A JSON object containing the material config
172+
required: true
173+
content:
174+
application/json:
175+
schema:
176+
$ref: '#/components/schemas/UpdateMaterialDTO'
177+
responses:
178+
'200':
179+
description: Successfully delete the git material
180+
content:
181+
application/json:
182+
schema:
183+
type: string
184+
example: "Git material deleted successfully."
185+
'400':
186+
description: Bad Request. Input Validation(decode) error/wrong request body.
187+
content:
188+
application/json:
189+
schema:
190+
$ref: '#/components/schemas/Error'
191+
'500':
192+
description: Internal Server Error
193+
content:
194+
application/json:
195+
schema:
196+
$ref: '#/components/schemas/Error'
197+
'401':
198+
description: Unauthorized User
199+
content:
200+
application/json:
201+
schema:
202+
$ref: '#/components/schemas/Error'
203+
166204
components:
167205
schemas:
168206
App:
@@ -204,6 +242,14 @@ components:
204242
description: app labels
205243
items:
206244
$ref: '#/components/schemas/AppLabel'
245+
246+
UpdateMaterialDTO:
247+
type: object
248+
properties:
249+
appId:
250+
type: integer
251+
material:
252+
$ref: '#/components/schemas/GitMaterial'
207253
AppLabel:
208254
type: object
209255
properties:

0 commit comments

Comments
 (0)