Browse Source

more meaningfull description

pull/8729/head
6543 6 years ago
parent
commit
413b2b63d9
No known key found for this signature in database
GPG Key ID: A1CA74D27FD13271
  1. 4
      routers/api/v1/repo/issue.go
  2. 4
      templates/swagger/v1_json.tmpl

4
routers/api/v1/repo/issue.go

@ -634,7 +634,7 @@ func AddIssueSubscription(ctx *context.APIContext) {
// "201":
// "$ref": "#/responses/empty"
// "304":
// description: User has no right to add subscribe of other user
// description: User can only subscribe itself if he is no admin
// "404":
// description: Issue not found
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
@ -707,7 +707,7 @@ func DelIssueSubscription(ctx *context.APIContext) {
// "201":
// "$ref": "#/responses/empty"
// "304":
// description: User has no right to remove subscribe of other user
// description: User can only subscribe itself if he is no admin
// "404":
// description: Issue not found
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))

4
templates/swagger/v1_json.tmpl

@ -3827,7 +3827,7 @@
"$ref": "#/responses/empty"
},
"304": {
"description": "User has no right to add subscribe of other user"
"description": "User can only subscribe itself if he is no admin"
},
"404": {
"description": "Issue not found"
@ -3882,7 +3882,7 @@
"$ref": "#/responses/empty"
},
"304": {
"description": "User has no right to remove subscribe of other user"
"description": "User can only subscribe itself if he is no admin"
},
"404": {
"description": "Issue not found"

Loading…
Cancel
Save