package
0.0.0-20240527190033-03fe1beb6235
Repository: https://github.com/eduardo681/go_routine.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
CreateUserHandler @BasePath /api/v1 @Summary Create user @Description Create a new User @Tags User @Accept json @Produce json @Param request body CreateUserRequest true "Request body" @Success 200 {object} ResponseUser @Failure 400 {object} helper.ErrorResponse @Failure 500 {object} helper.ErrorResponse @Router /user [POST].
DeleteUserHandler @BasePath /api/v1 @Summary Delete user @Description Delete a User @Tags User @Accept json @Produce json @Param id query uint64 true "id" @Success 200 {object} ResponseUser @Failure 400 {object} helper.ErrorResponse @Failure 500 {object} helper.ErrorResponse @Failure 401 {object} helper.ErrorResponse @Security ApiKeyAuth @Param x-access-token header string true "Access token" @Router /user [DELETE].
GetAllUsersHandler @BasePath /api/v1 @Summary Get users @Description Get all users @Tags User @Accept json @Produce json @Success 200 {object} ResponseUsers @Failure 400 {object} helper.ErrorResponse @Failure 401 {object} helper.ErrorResponse @Security ApiKeyAuth @Param x-access-token header string true "Access token" @Router /user [GET].
GetUserHandler @BasePath /api/v1 @Summary Get user @Description Get all info of the user @Tags User @Accept json @Produce json @Param id query uint64 true "id" @Success 200 {object} ResponseUser @Failure 400 {object} helper.ErrorResponse @Failure 401 {object} helper.ErrorResponse @Security ApiKeyAuth @Param x-access-token header string true "Access token" @Router /user [GET].
No description provided by the author
LoginHandler @BasePath /api/v1 @Summary Login @Description Login and generate token @Tags User @Accept json @Produce json @Param request body LoginRequest true "Request body" @Success 200 {object} ResponseLogin @Failure 400 {object} helper.ErrorResponse @Failure 500 {object} helper.ErrorResponse @Router /login [POST].
UpdateUserHandler @BasePath /api/v1 @Summary Update user @Description Update user info @Tags User @Accept json @Produce json @Param id query uint64 true "id" @Param request body UpdateUserRequest true "Request body" @Success 200 {object} ResponseUser @Failure 400 {object} helper.ErrorResponse @Failure 401 {object} helper.ErrorResponse @Security ApiKeyAuth @Param x-access-token header string true "Access token" @Router /user [PUT].
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author