Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yahahaff committed Jul 29, 2024
1 parent c215adc commit cd07f05
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 98 deletions.
94 changes: 48 additions & 46 deletions docs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

94 changes: 48 additions & 46 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,51 @@
}
}
},
"/api/cloudflare/r2/file/delete": {
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "Deletes a file from the R2 bucket based on the provided key",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"R2"
],
"summary": "Delete a file from R2 bucket",
"parameters": [
{
"description": "File Key",
"name": "key",
"in": "body",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "File deleted successfully",
"schema": {
"$ref": "#/definitions/response.Response"
}
},
"500": {
"description": "Failed to delete file",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/api/cloudflare/r2/file/getList": {
"get": {
"security": [
Expand Down Expand Up @@ -121,7 +166,7 @@
}
}
},
"/api/cloudflare/r2/file/metadata/{key}": {
"/api/cloudflare/r2/file/metadata": {
"get": {
"security": [
{
Expand All @@ -144,7 +189,7 @@
"type": "string",
"description": "File Key",
"name": "key",
"in": "path",
"in": "query",
"required": true
}
],
Expand Down Expand Up @@ -213,49 +258,6 @@
}
}
},
"/api/cloudflare/r2/file/{key}": {
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "Deletes a file from the R2 bucket based on the provided key",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"R2"
],
"summary": "Delete a file from R2 bucket",
"parameters": [
{
"type": "string",
"description": "File Key",
"name": "key",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "File deleted successfully",
"schema": {
"$ref": "#/definitions/response.Response"
}
},
"500": {
"description": "Failed to delete file",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/api/sys/authenticator/disable": {
"post": {
"security": [
Expand Down Expand Up @@ -1293,7 +1295,7 @@
}
},
"/api/v3/kv/deleteKey": {
"post": {
"delete": {
"security": [
{
"Bearer": []
Expand Down
13 changes: 7 additions & 6 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -334,17 +334,18 @@ paths:
summary: 获取图片验证码
tags:
- 验证码
/api/cloudflare/r2/file/{key}:
/api/cloudflare/r2/file/delete:
delete:
consumes:
- application/json
description: Deletes a file from the R2 bucket based on the provided key
parameters:
- description: File Key
in: path
in: body
name: key
required: true
type: string
schema:
type: string
produces:
- application/json
responses:
Expand Down Expand Up @@ -377,15 +378,15 @@ paths:
summary: 获取文件列表
tags:
- R2
/api/cloudflare/r2/file/metadata/{key}:
/api/cloudflare/r2/file/metadata:
get:
consumes:
- application/json
description: Retrieves metadata of a file from the R2 bucket based on the provided
key
parameters:
- description: File Key
in: path
in: query
name: key
required: true
type: string
Expand Down Expand Up @@ -1066,7 +1067,7 @@ paths:
tags:
- 用户中心
/api/v3/kv/deleteKey:
post:
delete:
consumes:
- application/json
parameters:
Expand Down

0 comments on commit cd07f05

Please sign in to comment.