Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoginHandler ¶
@Summary User Login @Description Log in with the provided email and password. @Tags Users @Accept json @Produce json @Param user body api.LoginHandler.LoginData true "User login request" @Success 200 {string} string "Login successful" @Failure 400 {object} object "Bad Request" @Failure 401 {object} object "Unauthorized" @Router /users/v1/login [post]
func RegisterUser ¶
@Summary Register a new user @Description Register a new user with the provided information. @Tags Users @Accept json @Produce json @Param user body models.User true "User registration request" @Success 201 {string} string "User registered successfully" @Failure 400 {object} object "Bad Request" @Failure 409 {object} object "Conflict" @Router /users/v1/signup [post]
Types ¶
This section is empty.