handler

package
v0.0.0-...-9bca149 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContent

func CreateContent(c *fiber.Ctx) error

CreateContent new content Collection is created by mongoDB automatically on first insert call

func CreateContentType

func CreateContentType(c *fiber.Ctx) error

CreateContentType

func CreateRole

func CreateRole(c *fiber.Ctx) error

CreateRole

func CreateUser

func CreateUser(c *fiber.Ctx) error

CreateUser new user

func DeleteContent

func DeleteContent(c *fiber.Ctx) error

DeleteContent delete content

func DeleteContentType

func DeleteContentType(c *fiber.Ctx) error

DeleteContentType

func DeleteRole

func DeleteRole(c *fiber.Ctx) error

DeleteRole delete role with provided role name

func DeleteUser

func DeleteUser(c *fiber.Ctx) error

DeleteUser delete user

func GetAllContentTypes

func GetAllContentTypes(c *fiber.Ctx) error

GetAll query all Content Types

func GetContent

func GetContent(c *fiber.Ctx) error

Query content entries with filter provided in query params

func GetContentType

func GetContentType(c *fiber.Ctx) error

GetContentType query contenttypes by ID

func GetRoles

func GetRoles(c *fiber.Ctx) error

GetAll query all Roles

func GetUsers

func GetUsers(c *fiber.Ctx) error

Query users with filter provided in query params

func Healthcheck

func Healthcheck(c *fiber.Ctx) error

func Login

func Login(c *fiber.Ctx) error

Login get user and password

func UpdateContent

func UpdateContent(c *fiber.Ctx) error

Update content entry with parameters from request body Update user with parameters from request body

func UpdateContentType

func UpdateContentType(c *fiber.Ctx) error

Update content type with parameters from request body

func UpdateRole

func UpdateRole(c *fiber.Ctx) error

Update role with parameters from request body lookup by: role field to update: weight

func UpdateUser

func UpdateUser(c *fiber.Ctx) error

Update user with parameters from request body

Types

This section is empty.

Jump to

Keyboard shortcuts

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