File tree Expand file tree Collapse file tree 1 file changed +85
-0
lines changed Expand file tree Collapse file tree 1 file changed +85
-0
lines changed Original file line number Diff line number Diff line change 301
301
" status"
302
302
],
303
303
"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"
304
326
}
305
327
}
306
328
},
495
517
},
496
518
"summary" : " Get status"
497
519
}
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
+ }
498
583
}
499
584
}
500
585
}
You can’t perform that action at this time.
0 commit comments