diff options
author | 6543 <6543@obermui.de> | 2020-05-31 22:59:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-31 21:59:34 +0100 |
commit | b636cd6fd40ae05f22e732574da10af060273f9f (patch) | |
tree | 83de939bca57ad39c588117678079d9dc3e64751 /templates | |
parent | 34b6983f566d3ced9d0ff9a4e1c2138b6d7fbcfe (diff) | |
download | gitea-b636cd6fd40ae05f22e732574da10af060273f9f.tar.gz gitea-b636cd6fd40ae05f22e732574da10af060273f9f.zip |
Handle expected errors in FileCreate & FileUpdate API (#11643)
as title
needed for #11641
Diffstat (limited to 'templates')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 70f12b083f..4f9c458326 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -2793,6 +2793,15 @@ "responses": { "200": { "$ref": "#/responses/FileResponse" + }, + "403": { + "$ref": "#/responses/error" + }, + "404": { + "$ref": "#/responses/notFound" + }, + "422": { + "$ref": "#/responses/error" } } }, @@ -2842,6 +2851,15 @@ "responses": { "201": { "$ref": "#/responses/FileResponse" + }, + "403": { + "$ref": "#/responses/error" + }, + "404": { + "$ref": "#/responses/notFound" + }, + "422": { + "$ref": "#/responses/error" } } }, |