1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Handle expected errors in FileCreate & FileUpdate API (#11643) (#11718)

as title

needed for #11641
This commit is contained in:
6543
2020-06-01 08:28:52 +02:00
committed by GitHub
parent 249e22bb98
commit 70739c32a9
4 changed files with 57 additions and 4 deletions

View File

@@ -2746,6 +2746,15 @@
"responses": {
"200": {
"$ref": "#/responses/FileResponse"
},
"403": {
"$ref": "#/responses/error"
},
"404": {
"$ref": "#/responses/notFound"
},
"422": {
"$ref": "#/responses/error"
}
}
},
@@ -2795,6 +2804,15 @@
"responses": {
"201": {
"$ref": "#/responses/FileResponse"
},
"403": {
"$ref": "#/responses/error"
},
"404": {
"$ref": "#/responses/notFound"
},
"422": {
"$ref": "#/responses/error"
}
}
},