mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-21 12:44:49 -05:00
Fix swagger docs (#3300)
This commit is contained in:
parent
30fb81c71e
commit
ce7ae17b81
2 changed files with 13 additions and 162 deletions
161
public/swagger.v1.json
vendored
161
public/swagger.v1.json
vendored
File diff suppressed because it is too large
Load diff
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue