Inspect API (#1540)

* Inspect API

* Address review comments

Co-authored-by: Alex <33497058+bexsoft@users.noreply.github.com>
Co-authored-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
Prakash Senthil Vel
2022-02-16 00:14:51 +00:00
committed by GitHub
parent 3ae8e14156
commit 951d3bf6dc
10 changed files with 777 additions and 0 deletions

View File

@@ -214,6 +214,51 @@ func init() {
}
}
},
"/admin/inspect": {
"get": {
"produces": [
"application/octet-stream"
],
"tags": [
"AdminAPI"
],
"summary": "Inspect Files on Drive",
"operationId": "Inspect",
"parameters": [
{
"type": "string",
"name": "file",
"in": "query",
"required": true
},
{
"type": "string",
"name": "volume",
"in": "query",
"required": true
},
{
"type": "boolean",
"name": "encrypt",
"in": "query"
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"type": "file"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/admin/notification_endpoints": {
"get": {
"tags": [
@@ -6585,6 +6630,51 @@ func init() {
}
}
},
"/admin/inspect": {
"get": {
"produces": [
"application/octet-stream"
],
"tags": [
"AdminAPI"
],
"summary": "Inspect Files on Drive",
"operationId": "Inspect",
"parameters": [
{
"type": "string",
"name": "file",
"in": "query",
"required": true
},
{
"type": "string",
"name": "volume",
"in": "query",
"required": true
},
{
"type": "boolean",
"name": "encrypt",
"in": "query"
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"type": "file"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/admin/notification_endpoints": {
"get": {
"tags": [