[#15] Accept list of tokens to sign

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-07-07 12:02:05 +03:00 committed by Alex Vanin
parent 0e4e213352
commit 686588bc1a
12 changed files with 289 additions and 203 deletions

View file

@ -49,17 +49,6 @@ func init() {
"in": "header",
"required": true
},
{
"enum": [
"object",
"container"
],
"type": "string",
"description": "Supported operation scope for token",
"name": "X-Bearer-Scope",
"in": "header",
"required": true
},
{
"type": "integer",
"default": 100,
@ -69,11 +58,14 @@ func init() {
},
{
"description": "Bearer token",
"name": "token",
"name": "tokens",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/Bearer"
"type": "array",
"items": {
"$ref": "#/definitions/Bearer"
}
}
}
],
@ -81,7 +73,10 @@ func init() {
"200": {
"description": "Base64 encoded stable binary marshaled bearer token",
"schema": {
"$ref": "#/definitions/TokenResponse"
"type": "array",
"items": {
"$ref": "#/definitions/TokenResponse"
}
}
},
"400": {
@ -555,6 +550,9 @@ func init() {
"container": {
"$ref": "#/definitions/Rule"
},
"name": {
"type": "string"
},
"object": {
"type": "array",
"items": {
@ -983,6 +981,9 @@ func init() {
"token"
],
"properties": {
"name": {
"type": "string"
},
"token": {
"type": "string"
},
@ -1100,17 +1101,6 @@ func init() {
"in": "header",
"required": true
},
{
"enum": [
"object",
"container"
],
"type": "string",
"description": "Supported operation scope for token",
"name": "X-Bearer-Scope",
"in": "header",
"required": true
},
{
"type": "integer",
"default": 100,
@ -1120,11 +1110,14 @@ func init() {
},
{
"description": "Bearer token",
"name": "token",
"name": "tokens",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/Bearer"
"type": "array",
"items": {
"$ref": "#/definitions/Bearer"
}
}
}
],
@ -1132,7 +1125,10 @@ func init() {
"200": {
"description": "Base64 encoded stable binary marshaled bearer token",
"schema": {
"$ref": "#/definitions/TokenResponse"
"type": "array",
"items": {
"$ref": "#/definitions/TokenResponse"
}
}
},
"400": {
@ -1702,6 +1698,9 @@ func init() {
"container": {
"$ref": "#/definitions/Rule"
},
"name": {
"type": "string"
},
"object": {
"type": "array",
"items": {
@ -2130,6 +2129,9 @@ func init() {
"token"
],
"properties": {
"name": {
"type": "string"
},
"token": {
"type": "string"
},