Created a new API exclusive for metadata information (#1321)

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2021-12-15 10:50:34 -06:00
committed by GitHub
parent 3b2c740fe0
commit dd488e4f7a
13 changed files with 806 additions and 8 deletions

View File

@@ -1300,6 +1300,43 @@ func init() {
}
}
},
"/buckets/{bucket_name}/objects/metadata": {
"get": {
"tags": [
"UserAPI"
],
"summary": "Gets the metadata of an object",
"operationId": "GetObjectMetadata",
"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": {
"$ref": "#/definitions/metadata"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/buckets/{bucket_name}/objects/restore": {
"put": {
"tags": [
@@ -4554,6 +4591,15 @@ func init() {
}
}
},
"metadata": {
"type": "object",
"properties": {
"objectMetadata": {
"type": "object",
"additionalProperties": true
}
}
},
"multiBucketReplication": {
"required": [
"accessKey",
@@ -7025,6 +7071,43 @@ func init() {
}
}
},
"/buckets/{bucket_name}/objects/metadata": {
"get": {
"tags": [
"UserAPI"
],
"summary": "Gets the metadata of an object",
"operationId": "GetObjectMetadata",
"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": {
"$ref": "#/definitions/metadata"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/buckets/{bucket_name}/objects/restore": {
"put": {
"tags": [
@@ -10399,6 +10482,15 @@ func init() {
}
}
},
"metadata": {
"type": "object",
"properties": {
"objectMetadata": {
"type": "object",
"additionalProperties": true
}
}
},
"multiBucketReplication": {
"required": [
"accessKey",