# Functions
@Summary Get all users @Description Get all users @Id get-all-users @Tags User @Produce json @Success 200 {object} entities.UserListResponse @Failure 400 {object} HTTPError @Failure 500 {object} HTTPError @Param page query string false "Page" @Param limit query string false "Limit" @Param limit query string false "Limit" @Param user_ids query string false "User IDs" @Router /v1/user [get] @Security Keycloak.
@Summary Get users by role @Description Get users by role @Id get-users-by-role @Tags User @Produce json @Success 200 {object} entities.UserListResponse @Failure 400 {object} HTTPError @Failure 500 {object} HTTPError @Router /v1/user/role/{role} [get] @Param page query string false "Page" @Param limit query string false "Limit" @Param role path string true "Role" @Security Keycloak.
@Summary Request to login @Descriptio Request to login to the system.
@Summary Logout from the system @Descriptio Logout from the system @Tags User @Param body body entities.LogoutRequest true "Logout information" @Success 200 {string} string "OK" @Failure 400 {object} HTTPError @Failure 500 {object} HTTPError @Router /v1/user/logout [post].
@Summary Refresh token @Description Refresh token @Tags User @Accept json @Produce json @Param body body entities.RefreshTokenRequest true "Refresh token information" @Success 200 {object} entities.ClientTokenResponse @Failure 400 {object} HTTPError @Failure 500 {object} HTTPError @Router /v1/user/token/refresh [post].
@Summary Register a new user @Description Register a new user @Tags User @Accept json @Produce json @Param user body entities.UserRegisterRequest true "User information" @Success 201 {object} entities.UserResponse @Failure 400 {object} HTTPError @Failure 500 {object} HTTPError @Router /v1/user [post] @Security Keycloak.
No description provided by the author
No description provided by the author
@Summary Validate login code and request a access token @Descriptio Validate login code and request a access token @Tags User @Accept json @Produce json @Param body body entities.LoginTokenRequest true "Callback information" @Param redirect_url query string true "Redirect URL" @Success 200 {object} entities.ClientTokenResponse @Failure 400 {object} HTTPError @Failure 500 {object} HTTPError @Router /v1/user/login/token [post].