refactor: fix swagger doc issues

This commit is contained in:
dineshsalunke
2024-01-17 20:10:13 +05:30
parent 937c027dd8
commit f5688db55c
5 changed files with 307 additions and 13 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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
}