controllersv1

package
v0.0.0-...-790789d Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFood

func CreateFood(c *gin.Context)

func CreateFoodGroup

func CreateFoodGroup(c *gin.Context)

@Summary create a food group @Description create a food group @Tags food group @Accept */* @Produce json @Success 200 @Router /v1/foodgroup [post]

func CreateUser

func CreateUser(c *gin.Context)

@Summary create a user @Description create a user @Tags user @Accept */* @Produce json @Success 200 @Router /v1/user [post]

func DeleteFoodGroup

func DeleteFoodGroup(c *gin.Context)

@Summary delete a food group @Description delete a food group @Tags food group @Accept */* @Produce json @Success 200 @Router /v1/foodgroup/:foodgroupId [delete]

func DeleteUser

func DeleteUser(c *gin.Context)

@Summary delete a user @Description delete a user @Tags user @Accept */* @Produce json @Success 200 @Router /v1/user/:userId [delete]

func GetFoodGroup

func GetFoodGroup(c *gin.Context)

func GetFoodGroups

func GetFoodGroups(c *gin.Context)

@Summary Get all food group @Description Get all food group @Tags food group @Accept */* @Produce json @Success 200 @Router /v1/foodgroup [Get]

func GetUser

func GetUser(c *gin.Context)

@Summary get a user @Description get a user @Tags user @Accept */* @Produce json @Success 200 @Router /v1/user [get]

func GetUsers

func GetUsers(c *gin.Context)

@Summary Get all users. @Description Get all users @Tags user @Accept */* @Produce json @Success 200 @Router /v1/users [get]

func UpdateFoodGroup

func UpdateFoodGroup(c *gin.Context)

func UpdateUsers

func UpdateUsers(c *gin.Context)

@Summary put a user @Description put a user @Tags user @Accept */* @Produce json @Success 200 @Router /v1/user [put]

Types

This section is empty.

Jump to

Keyboard shortcuts

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