FEAT: add upload init multi part upload

This commit is contained in:
Anderson Feitosa
2023-01-19 17:17:33 -03:00
parent 131b166d8d
commit 962e094a65
6 changed files with 140 additions and 28 deletions
+62 -5
View File
@@ -2444,16 +2444,16 @@
]
}
},
"/pipelinesV2/upload": {
"/pipelinesV2/init-upload": {
"post": {
"operationId": "PipelinesController_uploadFile",
"operationId": "PipelinesController_initUploadFile",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IUploadCSVFile"
"$ref": "#/components/schemas/IInitUploadCSVFile"
}
}
}
@@ -2468,6 +2468,37 @@
]
}
},
"/pipelinesV2/complete-upload": {
"post": {
"operationId": "PipelinesController_completeUploadFile",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ICompleteUploadCSVFile"
}
}
}
},
"responses": {
"201": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
},
"tags": [
"PipelinesV2"
]
}
},
"/pipelinesV2/file": {
"post": {
"operationId": "PipelinesController_uploadedFile",
@@ -5270,15 +5301,41 @@
"updated_at"
]
},
"IUploadCSVFile": {
"IInitUploadCSVFile": {
"type": "object",
"properties": {
"file_name": {
"type": "string"
},
"parts": {
"type": "number"
}
},
"required": [
"file_name"
"file_name",
"parts"
]
},
"ICompleteUploadCSVFile": {
"type": "object",
"properties": {
"upload_id": {
"type": "string"
},
"file_name": {
"type": "string"
},
"parts": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"upload_id",
"file_name",
"parts"
]
},
"ICreatePipelineCSVFile": {