Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func New ¶
func New(userSvc userservice.Service, projectSvc projectservice.Service) Handler
func (Handler) RegisterUser ¶
RegisterUser godoc
@Summary Login user
@Description Login user
@Tags User
@Accept json
@Produce json
@Param request body param.RegisterRequest true "Register request body"
@Success 201 {object} param.RegisterResponse
@Failure 400 {object} httputil.HTTPError
@Failure 500 {object} httputil.HTTPError
@Security JWTToken
@Router /users/register [post]
func (Handler) SetUserRoute ¶
func (Handler) UserLogin ¶
UserLogin godoc
@Summary Login user
@Description Login user
@Tags User
@Accept json
@Produce json
@Param request body param.LoginRequest true "Login request body"
@Success 200 {object} param.LoginResponse
@Failure 400 {object} httputil.HTTPError
@Failure 401 {object} httputil.HTTPError
@Failure 500 {object} httputil.HTTPError
@Security JWTToken
@Router /users/login [post]
Click to show internal directories.
Click to hide internal directories.