summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-05-01 00:55:24 +0200
committerGitHub <noreply@github.com>2020-04-30 23:55:24 +0100
commite9e8638f1889daaff159427d48c7ef94e13ff707 (patch)
treea51898519f17f866747120706fe9a6ff445b580c /templates
parent4974b7c120102b49548197e58c7a58181ba52170 (diff)
downloadgitea-e9e8638f1889daaff159427d48c7ef94e13ff707.tar.gz
gitea-e9e8638f1889daaff159427d48c7ef94e13ff707.zip
Return issue subscription status from API subscribe (#10966)
* [API] issue subscription indicate by http status * CI.restart()
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl10
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index edcc5fd37a..b6a9085be5 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -5315,8 +5315,11 @@
}
],
"responses": {
+ "200": {
+ "description": "Already subscribed"
+ },
"201": {
- "$ref": "#/responses/empty"
+ "description": "Successfully Subscribed"
},
"304": {
"description": "User can only subscribe itself if he is no admin"
@@ -5370,8 +5373,11 @@
}
],
"responses": {
+ "200": {
+ "description": "Already unsubscribed"
+ },
"201": {
- "$ref": "#/responses/empty"
+ "description": "Successfully Unsubscribed"
},
"304": {
"description": "User can only subscribe itself if he is no admin"