Add download objects api and integrate it with UI (#321)

This commit is contained in:
Cesar N
2020-10-09 11:43:15 -07:00
committed by GitHub
parent 9007c7dd14
commit 7e6e64c729
15 changed files with 799 additions and 104 deletions

View File

@@ -429,6 +429,46 @@ func init() {
}
}
},
"/buckets/{bucket_name}/objects/download": {
"get": {
"produces": [
"application/octet-stream"
],
"tags": [
"UserAPI"
],
"summary": "Download Object",
"operationId": "Download Object",
"parameters": [
{
"type": "string",
"name": "bucket_name",
"in": "path",
"required": true
},
{
"type": "string",
"name": "prefix",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"type": "file"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/buckets/{bucket_name}/replication": {
"get": {
"tags": [
@@ -4840,6 +4880,46 @@ func init() {
}
}
},
"/buckets/{bucket_name}/objects/download": {
"get": {
"produces": [
"application/octet-stream"
],
"tags": [
"UserAPI"
],
"summary": "Download Object",
"operationId": "Download Object",
"parameters": [
{
"type": "string",
"name": "bucket_name",
"in": "path",
"required": true
},
{
"type": "string",
"name": "prefix",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"type": "file"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/buckets/{bucket_name}/replication": {
"get": {
"tags": [