feature: start swagger docs

This commit is contained in:
kiwiidb
2022-04-26 12:14:50 +02:00
parent a24c47faec
commit 5137d966cc
9 changed files with 591 additions and 20 deletions

View File

@@ -28,7 +28,16 @@ type CreateUserRequestBody struct {
AccountType string `json:"accounttype"`
}
// CreateUser : Create user Controller
// CreateUser godoc
// @Summary Create an account
// @Description Create a new account with a login and password
// @Accept json
// @Produce json
// @Param account body CreateUserRequestBody false "Create User"
// @Success 200 {object} CreateUserResponseBody
// @Failure 400 {object} responses.ErrorResponse
// @Failure 500 {object} responses.ErrorResponse
// @Router /create [post]
func (controller *CreateUserController) CreateUser(c echo.Context) error {
var body CreateUserRequestBody