Skip to content

Commit

Permalink
Merge pull request #9 from vvbbnn00/dev
Browse files Browse the repository at this point in the history
docs: Update API documentation again
  • Loading branch information
vvbbnn00 authored Mar 12, 2024
2 parents 03a135d + 9ee47c1 commit 64d3b15
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
15 changes: 13 additions & 2 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ const docTemplate = `{
}
],
"responses": {
"200": {
"description": "OK",
"201": {
"description": "File created",
"schema": {
"type": "string"
}
Expand Down Expand Up @@ -744,6 +744,12 @@ const docTemplate = `{
"type": "string"
}
},
"413": {
"description": "File too large",
"schema": {
"type": "string"
}
},
"500": {
"description": "Internal server error",
"schema": {
Expand Down Expand Up @@ -806,6 +812,11 @@ const docTemplate = `{
}
},
"delete": {
"security": [
{
"Authorization": []
}
],
"description": "Cancel an upload session, {path} should be the relative path of the file, starting from the root directory, e.g. /upload/path/to/file.txt",
"tags": [
"Upload"
Expand Down
15 changes: 13 additions & 2 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
}
],
"responses": {
"200": {
"description": "OK",
"201": {
"description": "File created",
"schema": {
"type": "string"
}
Expand Down Expand Up @@ -737,6 +737,12 @@
"type": "string"
}
},
"413": {
"description": "File too large",
"schema": {
"type": "string"
}
},
"500": {
"description": "Internal server error",
"schema": {
Expand Down Expand Up @@ -799,6 +805,11 @@
}
},
"delete": {
"security": [
{
"Authorization": []
}
],
"description": "Cancel an upload session, {path} should be the relative path of the file, starting from the root directory, e.g. /upload/path/to/file.txt",
"tags": [
"Upload"
Expand Down
10 changes: 8 additions & 2 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ paths:
produces:
- application/json
responses:
"200":
description: OK
"201":
description: File created
schema:
type: string
"400":
Expand Down Expand Up @@ -582,6 +582,8 @@ paths:
description: Internal server error
schema:
type: string
security:
- Authorization: []
summary: Cancel Upload
tags:
- Upload
Expand Down Expand Up @@ -647,6 +649,10 @@ paths:
description: Directory creation not allowed
schema:
type: string
"413":
description: File too large
schema:
type: string
"500":
description: Internal server error
schema:
Expand Down

0 comments on commit 64d3b15

Please sign in to comment.