diff options
author | 6543 <6543@obermui.de> | 2020-09-25 00:36:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-24 18:36:56 -0400 |
commit | efebb824ac9fc6717d89daa0542f03534451a532 (patch) | |
tree | 9e0000b9503335da835d344d4a43731b6ae976f4 /templates/swagger | |
parent | ba20dd7a7b59157d9232de7dfa99a23b0fb0d2aa (diff) | |
download | gitea-efebb824ac9fc6717d89daa0542f03534451a532.tar.gz gitea-efebb824ac9fc6717d89daa0542f03534451a532.zip |
API: GetReleaseByID return 404 if not found (#12933)
* API: GetReleaseByID return 404 if not found
* update swagger docs
Diffstat (limited to 'templates/swagger')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 6c0d8c1b32..c1847f0440 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -7563,6 +7563,9 @@ "201": { "$ref": "#/responses/Release" }, + "404": { + "$ref": "#/responses/notFound" + }, "409": { "$ref": "#/responses/error" } @@ -7606,6 +7609,9 @@ "responses": { "200": { "$ref": "#/responses/Release" + }, + "404": { + "$ref": "#/responses/notFound" } } }, @@ -7642,6 +7648,9 @@ "responses": { "204": { "$ref": "#/responses/empty" + }, + "404": { + "$ref": "#/responses/notFound" } } }, @@ -7691,6 +7700,9 @@ "responses": { "200": { "$ref": "#/responses/Release" + }, + "404": { + "$ref": "#/responses/notFound" } } } |