Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllUserRoles ¶
func GetAllUserRoles(_ service.AuthService) fiber.Handler
@Summary Get all user roles @Description Get all user roles @Tags Role @Produce json @Success 200 {object} entities.RoleListResponse @Failure 400 {object} HTTPError @Failure 500 {object} HTTPError @Param page query string false "Page" @Param limit query string false "Limit" @Router /v1/role [get] @Security Keycloak
func GetRoleByID ¶
func GetRoleByID(_ service.AuthService) fiber.Handler
@Summary Get a role by ID @Description Get a role by ID @Tags Role @Produce json @Success 200 {object} entities.RoleResponse @Failure 400 {object} HTTPError @Failure 404 {object} HTTPError @Failure 500 {object} HTTPError @Param id path string true "Role ID" @Router /v1/role/{id} [get] @Security Keycloak
func RegisterRoutes ¶
func RegisterRoutes(svc service.AuthService) *fiber.App
Types ¶
This section is empty.