mirror of
https://github.com/go-gitea/gitea
synced 2024-11-14 14:14:25 +00:00
more meaningfull description
This commit is contained in:
parent
a7c7674b3f
commit
413b2b63d9
@ -634,7 +634,7 @@ func AddIssueSubscription(ctx *context.APIContext) {
|
|||||||
// "201":
|
// "201":
|
||||||
// "$ref": "#/responses/empty"
|
// "$ref": "#/responses/empty"
|
||||||
// "304":
|
// "304":
|
||||||
// description: User has no right to add subscribe of other user
|
// description: User can only subscribe itself if he is no admin
|
||||||
// "404":
|
// "404":
|
||||||
// description: Issue not found
|
// description: Issue not found
|
||||||
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
|
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
|
||||||
@ -707,7 +707,7 @@ func DelIssueSubscription(ctx *context.APIContext) {
|
|||||||
// "201":
|
// "201":
|
||||||
// "$ref": "#/responses/empty"
|
// "$ref": "#/responses/empty"
|
||||||
// "304":
|
// "304":
|
||||||
// description: User has no right to remove subscribe of other user
|
// description: User can only subscribe itself if he is no admin
|
||||||
// "404":
|
// "404":
|
||||||
// description: Issue not found
|
// description: Issue not found
|
||||||
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
|
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
|
||||||
|
@ -3827,7 +3827,7 @@
|
|||||||
"$ref": "#/responses/empty"
|
"$ref": "#/responses/empty"
|
||||||
},
|
},
|
||||||
"304": {
|
"304": {
|
||||||
"description": "User has no right to add subscribe of other user"
|
"description": "User can only subscribe itself if he is no admin"
|
||||||
},
|
},
|
||||||
"404": {
|
"404": {
|
||||||
"description": "Issue not found"
|
"description": "Issue not found"
|
||||||
@ -3882,7 +3882,7 @@
|
|||||||
"$ref": "#/responses/empty"
|
"$ref": "#/responses/empty"
|
||||||
},
|
},
|
||||||
"304": {
|
"304": {
|
||||||
"description": "User has no right to remove subscribe of other user"
|
"description": "User can only subscribe itself if he is no admin"
|
||||||
},
|
},
|
||||||
"404": {
|
"404": {
|
||||||
"description": "Issue not found"
|
"description": "Issue not found"
|
||||||
|
Loading…
Reference in New Issue
Block a user