Skip to content

Commit fb96ce4

Browse files
committed
Swagger doc for batch-jobs-create
1 parent 10b1fa0 commit fb96ce4

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

swagger/paths/batch.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,28 @@
3131
# schema:
3232
# $ref: schemas/output/batch-insert.json
3333

34+
/batch/job:
35+
post:
36+
summary: Create a batch job proposal from preconstructed jobs and insert it as 'pending'.
37+
operationId: create_batch_job_from_jobs
38+
tags:
39+
- batch
40+
parameters:
41+
- name: body
42+
in: body
43+
description: ''
44+
schema:
45+
type: array
46+
# Schema file does not exist
47+
# $ref: schemas/input/batch-insert.json
48+
responses:
49+
'200':
50+
description: ''
51+
# Schema file does not exist
52+
# schema:
53+
# $ref: schemas/output/batch-insert.json
54+
55+
3456
/batch/{BatchId}:
3557
parameters:
3658
- in: path
@@ -94,5 +116,5 @@
94116
'200':
95117
description: ''
96118
examples:
97-
response:
119+
response:
98120
canceled_jobs: 4

0 commit comments

Comments
 (0)