diff options
author | David Schneiderbauer <daviian@users.noreply.github.com> | 2018-05-08 08:05:18 +0200 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2018-05-08 14:05:18 +0800 |
commit | ea01decb6b6d5b4231001b76f339a5451f813431 (patch) | |
tree | dc9efb1624811dccf9313e48193df95dfffc311e /routers | |
parent | 773530c917b4aa232da29e90cfc58139f365cc64 (diff) | |
download | gitea-ea01decb6b6d5b4231001b76f339a5451f813431.tar.gz gitea-ea01decb6b6d5b4231001b76f339a5451f813431.zip |
fix wrong issue endpoints in swagger doc (#3914)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/api/v1/repo/issue_comment.go | 2 | ||||
-rw-r--r-- | routers/api/v1/repo/issue_label.go | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/routers/api/v1/repo/issue_comment.go b/routers/api/v1/repo/issue_comment.go index 5fb50550f0..a9258849ea 100644 --- a/routers/api/v1/repo/issue_comment.go +++ b/routers/api/v1/repo/issue_comment.go @@ -15,7 +15,7 @@ import ( // ListIssueComments list all the comments of an issue func ListIssueComments(ctx *context.APIContext) { - // swagger:operation GET /repos/{owner}/{repo}/issue/{index}/comments issue issueGetComments + // swagger:operation GET /repos/{owner}/{repo}/issues/{index}/comments issue issueGetComments // --- // summary: List all comments on an issue // produces: diff --git a/routers/api/v1/repo/issue_label.go b/routers/api/v1/repo/issue_label.go index 95ea19d54d..3657f02c65 100644 --- a/routers/api/v1/repo/issue_label.go +++ b/routers/api/v1/repo/issue_label.go @@ -58,7 +58,7 @@ func ListIssueLabels(ctx *context.APIContext) { // AddIssueLabels add labels for an issue func AddIssueLabels(ctx *context.APIContext, form api.IssueLabelsOption) { - // swagger:operation POST /repos/{owner}/{repo}/issue/{index}/labels issue issueAddLabel + // swagger:operation POST /repos/{owner}/{repo}/issues/{index}/labels issue issueAddLabel // --- // summary: Add a label to an issue // consumes: @@ -129,7 +129,7 @@ func AddIssueLabels(ctx *context.APIContext, form api.IssueLabelsOption) { // DeleteIssueLabel delete a label for an issue func DeleteIssueLabel(ctx *context.APIContext) { - // swagger:operation DELETE /repos/{owner}/{repo}/issue/{index}/labels/{id} issue issueRemoveLabel + // swagger:operation DELETE /repos/{owner}/{repo}/issues/{index}/labels/{id} issue issueRemoveLabel // --- // summary: Remove a label from an issue // produces: @@ -193,7 +193,7 @@ func DeleteIssueLabel(ctx *context.APIContext) { // ReplaceIssueLabels replace labels for an issue func ReplaceIssueLabels(ctx *context.APIContext, form api.IssueLabelsOption) { - // swagger:operation PUT /repos/{owner}/{repo}/issue/{index}/labels issue issueReplaceLabels + // swagger:operation PUT /repos/{owner}/{repo}/issues/{index}/labels issue issueReplaceLabels // --- // summary: Replace an issue's labels // consumes: @@ -264,7 +264,7 @@ func ReplaceIssueLabels(ctx *context.APIContext, form api.IssueLabelsOption) { // ClearIssueLabels delete all the labels for an issue func ClearIssueLabels(ctx *context.APIContext) { - // swagger:operation DELETE /repos/{owner}/{repo}/issue/{index}/labels issue issueClearLabels + // swagger:operation DELETE /repos/{owner}/{repo}/issues/{index}/labels issue issueClearLabels // --- // summary: Remove all labels from an issue // produces: |