Skip to content

Commit

Permalink
assemble swagger api json
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyofx committed Jan 29, 2024
1 parent d601315 commit eb83e32
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/endpoints/swagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ func FilterValidParams(controller mvc.ControllerDescriptor, pathMap map[string]m
}

}

pathInfo.RequestBody = RequestBody(param)
pathInfoMap[act.ActionMethod] = pathInfo

}
}
if act.ActionMethod == "any" {
act.ActionMethod = "get"
}
pathInfoMap[act.ActionMethod] = pathInfo

}
return pathMap
Expand Down

0 comments on commit eb83e32

Please sign in to comment.