diff options
author | Ethan Koenig <ethantkoenig@gmail.com> | 2018-01-04 01:31:40 -0500 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2018-01-04 14:31:40 +0800 |
commit | ce7ae17b81220434af13fd048e44899bbd7d9e72 (patch) | |
tree | 781389fd6f6dcabb171a51aa044997595f757d69 /routers | |
parent | 30fb81c71ef8d452746194b4d9187424f6d11d81 (diff) | |
download | gitea-ce7ae17b81220434af13fd048e44899bbd7d9e72.tar.gz gitea-ce7ae17b81220434af13fd048e44899bbd7d9e72.zip |
Fix swagger docs (#3300)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/api/v1/repo/issue.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index c2d4819f05..8507e65efa 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -77,9 +77,9 @@ func ListIssues(ctx *context.APIContext) { // GetIssue get an issue of a repository func GetIssue(ctx *context.APIContext) { - // swagger:operation GET /repos/{owner}/{repo}/issues/{id} issue issueGetIssue + // swagger:operation GET /repos/{owner}/{repo}/issues/{index} issue issueGetIssue // --- - // summary: Get an issue by id + // summary: Get an issue // produces: // - application/json // parameters: @@ -93,9 +93,9 @@ func GetIssue(ctx *context.APIContext) { // description: name of the repo // type: string // required: true - // - name: id + // - name: index // in: path - // description: id of the issue to get + // description: index of the issue to get // type: integer // required: true // responses: @@ -190,7 +190,7 @@ func CreateIssue(ctx *context.APIContext, form api.CreateIssueOption) { // EditIssue modify an issue of a repository func EditIssue(ctx *context.APIContext, form api.EditIssueOption) { - // swagger:operation PATCH /repos/{owner}/{repo}/issues/{id} issue issueEditIssue + // swagger:operation PATCH /repos/{owner}/{repo}/issues/{index} issue issueEditIssue // --- // summary: Edit an issue // consumes: @@ -208,9 +208,9 @@ func EditIssue(ctx *context.APIContext, form api.EditIssueOption) { // description: name of the repo // type: string // required: true - // - name: id + // - name: index // in: path - // description: id of the issue to edit + // description: index of the issue to edit // type: integer // required: true // - name: body |