Api bucket policy (#674)

* Adding API for Users with Access to Bucket

* changing error logging

* Delete .yarn-integrity
This commit is contained in:
adfost
2021-04-02 16:13:29 -07:00
committed by GitHub
parent 94747acab2
commit 4f29f8457f
14 changed files with 1280 additions and 0 deletions

View File

@@ -246,6 +246,52 @@ func init() {
}
}
},
"/bucket-users/{bucket}": {
"get": {
"tags": [
"AdminAPI"
],
"summary": "List Users With Access to a Given Bucket",
"operationId": "ListUsersWithAccessToBucket",
"parameters": [
{
"type": "string",
"name": "bucket",
"in": "path",
"required": true
},
{
"type": "integer",
"format": "int32",
"name": "offset",
"in": "query"
},
{
"type": "integer",
"format": "int32",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/buckets": {
"get": {
"tags": [
@@ -6091,6 +6137,52 @@ func init() {
}
}
},
"/bucket-users/{bucket}": {
"get": {
"tags": [
"AdminAPI"
],
"summary": "List Users With Access to a Given Bucket",
"operationId": "ListUsersWithAccessToBucket",
"parameters": [
{
"type": "string",
"name": "bucket",
"in": "path",
"required": true
},
{
"type": "integer",
"format": "int32",
"name": "offset",
"in": "query"
},
{
"type": "integer",
"format": "int32",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/buckets": {
"get": {
"tags": [