Skip to content

Commit 9dc9fbd

Browse files
committed
feat: run make gen
1 parent 8c79316 commit 9dc9fbd

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

openapi.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,28 @@
301301
"status"
302302
],
303303
"type": "object"
304+
},
305+
"UploadResponseBody": {
306+
"additionalProperties": false,
307+
"properties": {
308+
"$schema": {
309+
"description": "A URL to the JSON Schema for this object.",
310+
"examples": [
311+
"https://example.com/schemas/UploadResponseBody.json"
312+
],
313+
"format": "uri",
314+
"readOnly": true,
315+
"type": "string"
316+
},
317+
"ok": {
318+
"description": "Indicates whether the files were uploaded successfully.",
319+
"type": "boolean"
320+
}
321+
},
322+
"required": [
323+
"ok"
324+
],
325+
"type": "object"
304326
}
305327
}
306328
},
@@ -495,6 +517,69 @@
495517
},
496518
"summary": "Get status"
497519
}
520+
},
521+
"/upload": {
522+
"post": {
523+
"description": "Upload files to the specified upload path.",
524+
"operationId": "post-upload",
525+
"requestBody": {
526+
"content": {
527+
"multipart/form-data": {
528+
"encoding": {
529+
"file": {
530+
"contentType": "application/zip"
531+
},
532+
"uploadPath": {
533+
"contentType": "text/plain"
534+
}
535+
},
536+
"schema": {
537+
"properties": {
538+
"file": {
539+
"contentEncoding": "binary",
540+
"contentMediaType": "application/octet-stream",
541+
"description": "zip of all the files that needs to be uploaded",
542+
"format": "binary",
543+
"type": "string"
544+
},
545+
"uploadPath": {
546+
"description": "location where all the files in the zip will be extracted to.",
547+
"type": "string"
548+
}
549+
},
550+
"required": [
551+
"uploadPath",
552+
"file"
553+
],
554+
"type": "object"
555+
}
556+
}
557+
}
558+
},
559+
"responses": {
560+
"200": {
561+
"content": {
562+
"application/json": {
563+
"schema": {
564+
"$ref": "#/components/schemas/UploadResponseBody"
565+
}
566+
}
567+
},
568+
"description": "OK"
569+
},
570+
"default": {
571+
"content": {
572+
"application/problem+json": {
573+
"schema": {
574+
"$ref": "#/components/schemas/ErrorModel"
575+
}
576+
}
577+
},
578+
"description": "Error"
579+
}
580+
},
581+
"summary": "Post upload"
582+
}
498583
}
499584
}
500585
}

0 commit comments

Comments
 (0)