refactor: fix swagger doc issues
This commit is contained in:
@@ -21,7 +21,7 @@ func ListProjectBoards(ctx *context.APIContext) {
|
||||
// produces:
|
||||
// - application/json
|
||||
// parameters:
|
||||
// - name: id
|
||||
// - name: projectId
|
||||
// in: path
|
||||
// description: id of the project
|
||||
// type: string
|
||||
@@ -78,7 +78,7 @@ func CreateProjectBoard(ctx *context.APIContext) {
|
||||
// consumes:
|
||||
// - application/json
|
||||
// parameters:
|
||||
// - name: id
|
||||
// - name: projectId
|
||||
// in: path
|
||||
// description: id of the project
|
||||
// type: string
|
||||
@@ -128,7 +128,7 @@ func GetProjectBoard(ctx *context.APIContext) {
|
||||
// produces:
|
||||
// - application/json
|
||||
// parameters:
|
||||
// - name: id
|
||||
// - name: boardId
|
||||
// in: path
|
||||
// description: id of the board
|
||||
// type: string
|
||||
@@ -164,7 +164,7 @@ func UpdateProjectBoard(ctx *context.APIContext) {
|
||||
// consumes:
|
||||
// - application/json
|
||||
// parameters:
|
||||
// - name: id
|
||||
// - name: boardId
|
||||
// in: path
|
||||
// description: id of the project board
|
||||
// type: string
|
||||
@@ -219,7 +219,7 @@ func DeleteProjectBoard(ctx *context.APIContext) {
|
||||
// produces:
|
||||
// - application/json
|
||||
// parameters:
|
||||
// - name: id
|
||||
// - name: boardId
|
||||
// in: path
|
||||
// description: id of the project board
|
||||
// type: string
|
||||
|
||||
@@ -143,7 +143,7 @@ func GetProject(ctx *context.APIContext) {
|
||||
// produces:
|
||||
// - application/json
|
||||
// parameters:
|
||||
// - name: id
|
||||
// - name: projectId
|
||||
// in: path
|
||||
// description: id of the project
|
||||
// type: string
|
||||
@@ -177,7 +177,7 @@ func UpdateProject(ctx *context.APIContext) {
|
||||
// consumes:
|
||||
// - application/json
|
||||
// parameters:
|
||||
// - name: id
|
||||
// - name: projectId
|
||||
// in: path
|
||||
// description: id of the project
|
||||
// type: string
|
||||
@@ -223,7 +223,7 @@ func DeleteProject(ctx *context.APIContext) {
|
||||
// ---
|
||||
// summary: Delete project
|
||||
// parameters:
|
||||
// - name: id
|
||||
// - name: projectId
|
||||
// in: path
|
||||
// description: id of the project
|
||||
// type: string
|
||||
|
||||
@@ -190,4 +190,16 @@ type swaggerParameterBodies struct {
|
||||
|
||||
// in:body
|
||||
CreateOrUpdateSecretOption api.CreateOrUpdateSecretOption
|
||||
|
||||
// in:body
|
||||
NewProjectPayload api.NewProjectPayload
|
||||
|
||||
// in:body
|
||||
UpdateProjectPayload api.UpdateProjectPayload
|
||||
|
||||
// in:body
|
||||
NewProjectBoardPayload api.NewProjectBoardPayload
|
||||
|
||||
// in:body
|
||||
UpdateProjectBoardPayload api.UpdateProjectBoardPayload
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user