Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
CreateUser godoc @Summary Create a new user @Description Create a new user with the input payload @Tags users @Accept json @Produce json @Param user body models.UserRegistration true "Create user" @Success 201 {object} models.User @Failure 400 {object} ErrorResponse @Router /users [post]
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
ErrorResponse represents the structure of an error response
Click to show internal directories.
Click to hide internal directories.