Documentation
¶
Index ¶
- func CreateFood(c *gin.Context)
- func CreateFoodComment(c *gin.Context)
- func CreateFoodGroup(c *gin.Context)
- func CreateResturan(c *gin.Context)
- func CreateUser(c *gin.Context)
- func DeleteFood(c *gin.Context)
- func DeleteFoodGroup(c *gin.Context)
- func DeleteResturan(c *gin.Context)
- func DeleteUser(c *gin.Context)
- func GetComments(c *gin.Context)
- func GetFood(c *gin.Context)
- func GetFoodGroup(c *gin.Context)
- func GetFoodGroups(c *gin.Context)
- func GetFoods(c *gin.Context)
- func GetResturan(c *gin.Context)
- func GetResturans(c *gin.Context)
- func GetUser(c *gin.Context)
- func GetUsers(c *gin.Context)
- func UpdateFoodGroup(c *gin.Context)
- func UpdateResturan(c *gin.Context)
- func UpdateUsers(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFood ¶
@Summary create a food @Description create a food @Tags food @Accept */* @Produce json @Param Name query string false "food name" @Param FoodGroupId query integer false "food group id" @Param file formData file false "food image" @Success 200 @Router /v2/food [post]
func CreateFoodComment ¶
@Summary Create food Comment @Description Create food Comment @Tags food @Accept */* @Produce json @Success 200 @Router /v2/food/comment/:foodId [Post]
func CreateFoodGroup ¶
@Summary create a food group @Description create a food group @Tags food group @Accept */* @Produce json @Param Name query string false "food group name" @Param file formData file false "food group image" @Success 200 @Router /v2/foodgroup [post]
func CreateResturan ¶
@Summary create a resturan @Description create a resturan @Tags resturan @Accept */* @Produce json @Success 200 @Router /v2/resturan/:resturanId [post]
func CreateUser ¶
@Summary create a user @Description create a user @Tags user @Accept */* @Produce json @Success 200 @Router /v2/user [post]
func DeleteFood ¶
@Summary delete a food @Description delete a food @Tags food @Accept */* @Produce json @Param Name query string false "food name" @Success 200 @Router /v2/food/:id [delete]
func DeleteFoodGroup ¶
@Summary delete a food group @Description delete a food group @Tags food group @Accept */* @Produce json @Success 200 @Router /v2/foodgroup/:foodgroupId [delete]
func DeleteResturan ¶
@Summary delete a resturan @Description delete a resturan @Tags resturan @Accept */* @Produce json @Success 200 @Router /v2/resturan/:resturanId [delete]
func DeleteUser ¶
@Summary delete a user @Description delete a user @Tags user @Accept */* @Produce json @Success 200 @Router /v2/user/:userId [delete]
func GetComments ¶
@Summary Get Comments @Description Get Comments @Tags food @Accept */* @Produce json @Param page query integer false "page" @Param pagecount query integer false "pagecount" @Success 200 @Router /v2/food/comment/:foodId [Get]
func GetFood ¶
@Summary Get a food @Description Get a food @Tags food @Accept */* @Produce json @Success 200 @Router /v2/food/:foodId [Get]
func GetFoodGroup ¶
@Summary Get a food group @Description Get a food group @Tags food group @Accept */* @Produce json @Success 200 @Router /v2/foodgroup/:foodgroupId [Get]
func GetFoodGroups ¶
@Summary Get all food group @Description Get all food group @Tags food group @Accept */* @Produce json @Param page query integer false "page" @Param pagecount query integer false "pagecount" @Success 200 @Router /v2/foodgroup [Get]
func GetFoods ¶
@Summary Get all food @Description Get all food @Tags food @Accept */* @Produce json @Param page query integer false "page" @Param pagecount query integer false "pagecount" @Success 200 @Router /v2/food [Get]
func GetResturan ¶
@Summary Get a resturan @Description Get a resturan @Tags resturan @Accept */* @Produce json @Success 200 @Router /v2/resturan/:resturanId [Get]
func GetResturans ¶
@Summary Get all resturan @Description Get all resturan @Tags resturan @Accept */* @Produce json @Param page query integer false "page" @Param pagecount query integer false "pagecount" @Success 200 @Router /v2/resturan [Get]
func GetUser ¶
@Summary get a user @Description get a user @Tags user @Accept */* @Produce json @Success 200 @Router /v2/user [get]
func GetUsers ¶
@Summary Get all users. @Description Get all users @Tags user @Accept */* @Produce json @Success 200 @Router /v2/users [get]
func UpdateFoodGroup ¶
@Summary Update a food group @Description Update a food group @Tags food group @Accept */* @Produce json @Param Id query integer false "food group id" @Param Name query string false "food group name" @Param file formData file false "food group image" @Success 200 @Router /v2/foodgroup [PUT]
func UpdateResturan ¶
@Summary Update a resturan @Description Update a resturan @Tags resturan @Accept */* @Produce json @Param Id query integer false "resturan id" @Param Name query string false "resturan name" @Param Description query string false "resturan description" @Success 200 @Router /v2/resturan [PUT]
func UpdateUsers ¶
@Summary put a user @Description put a user @Tags user @Accept */* @Produce json @Success 200 @Router /v2/user [put]
Types ¶
This section is empty.