role

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL