Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoginUser ¶
LoginUser godoc @Summary Authenticate a user @Schemes @Description Authenticates a user using username and password, returns a JWT token if successful @Tags User @Security ApiKeyAuth @Accept json @Produce json @Param user body models.LoginUser true "User login object" @Success 200 {string} string "JWT Token" @Failure 400 {string} string "Bad Request" @Failure 401 {string} string "Unauthorized" @Failure 500 {string} string "Internal Server Error" @Router /login [post]
func RegisterUser ¶
RegisterUser godoc @Summary Register a new user @Schemes http @Description Registers a new user with the given username and password @Tags User @Security ApiKeyAuth @Accept json @Produce json @Param user body models.LoginUser true "User registration object" @Success 200 {string} string "Successfully registered" @Failure 400 {string} string "Bad Request" @Failure 500 {string} string "Internal Server Error" @Router /register [post]
Types ¶
This section is empty.