Skip to content

Commit db10892

Browse files
committed
feat: export of draft changes back to git
1 parent d011f00 commit db10892

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

specifications/git-connector/v1/git.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,44 @@ paths:
252252
responses:
253253
"200":
254254
description: OK
255+
/drafts/{draftId}/exportJob:
256+
get:
257+
operationId: getDraftExportJob
258+
tags: [Drafts]
259+
parameters:
260+
- name: draftId
261+
in: path
262+
required: true
263+
schema:
264+
type: string
265+
responses:
266+
"200":
267+
description: OK
268+
content:
269+
application/json:
270+
schema:
271+
$ref: '#/components/schemas/DraftExportJob'
272+
post:
273+
operationId: exportDraft
274+
tags: [Drafts]
275+
parameters:
276+
- name: draftId
277+
in: path
278+
required: true
279+
schema:
280+
type: string
281+
requestBody:
282+
content:
283+
application/json:
284+
schema:
285+
$ref: '#/components/schemas/DraftExportJob'
286+
responses:
287+
"200":
288+
description: OK
289+
content:
290+
application/json:
291+
schema:
292+
$ref: '#/components/schemas/DraftExportJob'
255293

256294
/drafts/{draftId}/preparationJob:
257295
get:
@@ -400,6 +438,14 @@ components:
400438
active: { type: boolean }
401439
errorMessage: { type: string }
402440

441+
DraftExportJob:
442+
type: object
443+
properties:
444+
gitBranchName: { type: string }
445+
modelixVersionHash: { type: string }
446+
active: { type: boolean }
447+
errorMessage: { type: string }
448+
403449
DraftPreparationJob:
404450
type: object
405451
properties:

0 commit comments

Comments
 (0)