Skip to content

Commit 413b2b6

Browse files
committed
more meaningfull description
1 parent a7c7674 commit 413b2b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

routers/api/v1/repo/issue.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ func AddIssueSubscription(ctx *context.APIContext) {
634634
// "201":
635635
// "$ref": "#/responses/empty"
636636
// "304":
637-
// description: User has no right to add subscribe of other user
637+
// description: User can only subscribe itself if he is no admin
638638
// "404":
639639
// description: Issue not found
640640
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
@@ -707,7 +707,7 @@ func DelIssueSubscription(ctx *context.APIContext) {
707707
// "201":
708708
// "$ref": "#/responses/empty"
709709
// "304":
710-
// description: User has no right to remove subscribe of other user
710+
// description: User can only subscribe itself if he is no admin
711711
// "404":
712712
// description: Issue not found
713713
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))

templates/swagger/v1_json.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3827,7 +3827,7 @@
38273827
"$ref": "#/responses/empty"
38283828
},
38293829
"304": {
3830-
"description": "User has no right to add subscribe of other user"
3830+
"description": "User can only subscribe itself if he is no admin"
38313831
},
38323832
"404": {
38333833
"description": "Issue not found"
@@ -3882,7 +3882,7 @@
38823882
"$ref": "#/responses/empty"
38833883
},
38843884
"304": {
3885-
"description": "User has no right to remove subscribe of other user"
3885+
"description": "User can only subscribe itself if he is no admin"
38863886
},
38873887
"404": {
38883888
"description": "Issue not found"

0 commit comments

Comments
 (0)