@@ -294,6 +294,37 @@ paths:
294294 summary : Finalize Dataset Upload
295295 tags :
296296 - s3upload
297+ /s3/abortDatasetUpload :
298+ post :
299+ operationId : AbortDatasetUpload
300+ requestBody :
301+ content :
302+ application/json :
303+ schema :
304+ $ref : " #/components/schemas/AbortDatasetUploadBody"
305+ required : true
306+ responses :
307+ " 201 " :
308+ description : Finalize dataset upload requested
309+ content :
310+ application/json :
311+ schema :
312+ $ref : " #/components/schemas/AbortDatasetUploadResp"
313+ " 422 " :
314+ content :
315+ application/json :
316+ schema :
317+ $ref : " #/components/schemas/HTTPValidationError"
318+ description : Validation Error
319+ " 500 " :
320+ content :
321+ application/json :
322+ schema :
323+ $ref : " #/components/schemas/InternalError"
324+ description : Internal Server Error
325+ summary : Abort Dataset Upload
326+ tags :
327+ - s3upload
297328components :
298329 securitySchemes :
299330 BasicAuth :
@@ -349,6 +380,9 @@ components:
349380 upload_id : upload_id
350381 object_name : object_name
351382 properties :
383+ dataset_id :
384+ title : dataset_id
385+ type : string
352386 upload_id :
353387 title : upload_id
354388 type : string
@@ -358,6 +392,7 @@ components:
358392 required :
359393 - object_name
360394 - upload_id
395+ - dataset_id
361396 title : AbortUploadBody
362397 AbortUploadResp :
363398 example :
@@ -412,6 +447,9 @@ components:
412447 object_name : object_name
413448 checksum_sha256 : checksum_sha256
414449 properties :
450+ dataset_id :
451+ title : dataset_id
452+ type : string
415453 object_name :
416454 title : object_name
417455 type : string
@@ -427,6 +465,7 @@ components:
427465 title : checksum_sha256
428466 type : string
429467 required :
468+ - dataset_id
430469 - checksum_sha256
431470 - object_name
432471 - parts
@@ -474,16 +513,41 @@ components:
474513 - uuid
475514 - name
476515 title : CreateJobResp
516+ AbortDatasetUploadBody :
517+ example :
518+ dataset_id : c2c6bc13-2c14-43d7-91a9-46cd556b258d
519+ properties :
520+ dataset_id :
521+ title : dataset_id
522+ type : string
523+ required :
524+ - dataset_id
525+ title : AbortDatasetUploadBody
526+ AbortDatasetUploadResp :
527+ example :
528+ dataset_id : dataset_id
529+ message : " Upload finalized"
530+ properties :
531+ dataset_id :
532+ title : dataset_id
533+ type : string
534+ message :
535+ title : message
536+ type : string
537+ required :
538+ - dataset_id
539+ - message
540+ title : AbortDatasetUploadResp
477541 FinalizeDatasetUploadBody :
478542 example :
479- dataset_pid : c2c6bc13-2c14-43d7-91a9-46cd556b258d
543+ dataset_id : c2c6bc13-2c14-43d7-91a9-46cd556b258d
480544 create_archiving_job : true
481545 owner_group : Group
482546 owner_user : User
483547 contact_email : user@mail.com
484548 properties :
485- dataset_pid :
486- title : dataset_pid
549+ dataset_id :
550+ title : dataset_id
487551 type : string
488552 create_archiving_job :
489553 title : create_archiving_job
@@ -499,7 +563,7 @@ components:
499563 type : string
500564 format : email
501565 required :
502- - dataset_pid
566+ - dataset_id
503567 - create_archiving_job
504568 - owner_group
505569 - owner_user
@@ -564,6 +628,9 @@ components:
564628 parts : 0
565629 object_name : object_name
566630 properties :
631+ dataset_id :
632+ title : DatasetPID
633+ type : string
567634 object_name :
568635 title : object_name
569636 type : string
@@ -574,6 +641,7 @@ components:
574641 required :
575642 - object_name
576643 - parts
644+ - dataset_id
577645 title : PresignedUrlBody
578646 PresignedUrlResp :
579647 example :
@@ -596,29 +664,29 @@ components:
596664 title : PresignedUrlResp
597665 UploadRequestBody :
598666 example :
599- DatasetPID :
667+ dataset_id :
600668 - dataset/pid
601- TotalGigabytes : 1000
669+ total_gigabytes : 1000
602670 properties :
603- DatasetPID :
671+ dataset_id :
604672 title : DatasetPID
605673 type : string
606- TotalGigabytes :
674+ total_gigabytes :
607675 title : TotalGigabytes
608676 type : integer
609677 required :
610- - DatasetPID
611- - TotalGigabytes
678+ - dataset_id
679+ - total_gigabytes
612680 title : UploadRequestBody
613681 UploadRequestResp :
614682 example :
615- Ok : true
683+ ok : true
616684 properties :
617- Ok :
618- title : Ok
685+ ok :
686+ title : ok
619687 type : boolean
620688 required :
621- - Ok
689+ - ok
622690 title : UploadRequestResp
623691 ValidationError :
624692 example :
0 commit comments