Documentation
¶
Index ¶
- func DeleteMyPackByID(c *gin.Context)
- func DeleteMyPackContentByID(c *gin.Context)
- func DeletePackByID(c *gin.Context)
- func DeletePackContentByID(c *gin.Context)
- func GetMyPackByID(c *gin.Context)
- func GetMyPackContentsByPackID(c *gin.Context)
- func GetMyPacks(c *gin.Context)
- func GetPackByID(c *gin.Context)
- func GetPackContentByID(c *gin.Context)
- func GetPackContents(c *gin.Context)
- func GetPackContentsByPackID(c *gin.Context)
- func GetPacks(c *gin.Context)
- func ImportFromLighterPack(c *gin.Context)
- func PostMyPack(c *gin.Context)
- func PostMyPackContent(c *gin.Context)
- func PostPack(c *gin.Context)
- func PostPackContent(c *gin.Context)
- func PutMyPackByID(c *gin.Context)
- func PutMyPackContentByID(c *gin.Context)
- func PutPackByID(c *gin.Context)
- func PutPackContentByID(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteMyPackByID ¶
Delete a pack by ID @Summary Delete a pack by ID @Description Delete a pack by ID @Security Bearer @Tags Packs @Produce json @Param id path int true "Pack ID" @Success 200 {object} map[string]string "message" @Failure 400 {object} map[string]interface{} "error" @Failure 500 {object} map[string]interface{} "error" @Router /mypack/{id} [delete]
func DeleteMyPackContentByID ¶
Delete a pack content by ID @Summary Delete a pack content by ID @Description Delete a pack content by ID @Security Bearer @Tags Packs @Produce json @Param id path int true "Pack Content ID" @Success 200 {object} map[string]string "message" @Failure 400 {object} map[string]interface{} "error" @Failure 500 {object} map[string]interface{} "error" @Router /mypackcontent/{id} [delete]
func DeletePackByID ¶
func DeletePackContentByID ¶
Delete a pack content by ID @Summary [ADMIN] Delete a pack content by ID @Description Delete a pack content by ID - for admin use only @Security Bearer @Tags Internal @Produce json @Param id path int true "Pack Content ID" @Success 200 {object} map[string]string "message" @Failure 400 {object} map[string]interface{} "error" @Failure 500 {object} map[string]interface{} "error" @Router /packcontents/{id} [delete]
func GetMyPackByID ¶
Get pack by ID @Summary Get pack by ID @Description Get pack by ID @Security Bearer @Tags Packs @Produce json @Param id path int true "Pack ID" @Success 200 {object} dataset.Pack @Failure 400 {object} map[string]interface{} "error" @Failure 404 {object} map[string]interface{} "error" @Failure 500 {object} map[string]interface{} "error" @Router /mypack/{id} [get]
func GetMyPackContentsByPackID ¶
Get pack content by ID @Summary Get pack content by ID @Description Get pack content by ID @Security Bearer @Tags Packs @Produce json @Param id path int true "Pack Content ID" @Success 200 {object} dataset.PackContent @Failure 400 {object} map[string]interface{} "error" @Failure 404 {object} map[string]interface{} "error" @Failure 500 {object} map[string]interface{} "error" @Router /mypackcontent/{id} [get]
func GetMyPacks ¶
Get all packs @Summary [ADMIN] Get all packs @Description Get all packs - for admin use only @Security Bearer @Tags Internal @Produce json @Success 200 {object} []dataset.Pack @Failure 500 {object} map[string]interface{} "error" @Router /mypacks [get]
func GetPackByID ¶
Get pack by ID @Summary [ADMIN] Get pack by ID @Description Get pack by ID - for admin use only @Security Bearer @Tags Internal @Produce json @Param id path int true "Pack ID" @Success 200 {object} dataset.Pack @Failure 400 {object} map[string]interface{} "error" @Failure 404 {object} map[string]interface{} "error" @Failure 500 {object} map[string]interface{} "error" @Router /packs/{id} [get]
func GetPackContentByID ¶
Get pack content by ID @Summary [ADMIN] Get pack content by ID @Description Get pack content by ID - for admin use only @Security Bearer @Tags Internal @Produce json @Param id path int true "Pack Content ID" @Success 200 {object} dataset.PackContent @Failure 400 {object} map[string]interface{} "error" @Failure 404 {object} map[string]interface{} "error" @Failure 500 {object} map[string]interface{} "error" @Router /packcontents/{id} [get]
func GetPackContents ¶
Get all pack contents @Summary [ADMIN] Get all pack contents @Description Get all pack contents - for admin use only @Security Bearer @Tags Internal @Produce json @Success 200 {object} dataset.PackContents @Failure 500 {object} map[string]interface{} "error" @Router /packcontents [get]
func GetPackContentsByPackID ¶
Get all pack contents @Summary [ADMIN] Get all pack contents @Description Get all pack contents - for admin use only @Security Bearer @Tags Internal @Produce json @Success 200 {object} dataset.PackContents @Failure 500 {object} map[string]interface{} "error" @Router /packs/:id/packcontents [get]
func GetPacks ¶
Get all packs @Summary [ADMIN] Get all packs @Description Get all packs - for admin use only @Security Bearer @Tags Internal @Produce json @Success 200 {object} dataset.Packs @Failure 500 {object} map[string]interface{} "error" @Router /packs [get]
func ImportFromLighterPack ¶
Import from lighterpack @Summary Import from lighterpack csv pack file @Description Import from lighterpack csv pack file @Security Bearer @Tags Packs @Accept multipart/form-data @Produce json @Param file formData file true "CSV file" @Success 200 {object} map[string]string "message" @Failure 400 {object} map[string]interface{} "error" @Router /mypack/import [post]
func PostMyPack ¶
Create a new pack @Summary Create a new pack @Description Create a new pack @Security Bearer @Tags Packs @Accept json @Produce json @Param pack body dataset.Pack true "Pack" @Success 201 {object} dataset.Pack @Failure 400 {object} map[string]interface{} "error" @Failure 500 {object} map[string]interface{} "error" @Router /mypack [post]
func PostMyPackContent ¶
Create a new pack content @Summary Create a new pack content @Description Create a new pack content @Security Bearer @Tags Packs @Accept json @Produce json @Param packcontent body dataset.PackContent true "Pack Content" @Success 201 {object} dataset.PackContent @Failure 400 {object} map[string]interface{} "error" @Failure 500 {object} map[string]interface{} "error" @Router /mypackcontent [post]
func PostPack ¶
Create a new pack @Summary [ADMIN] Create a new pack @Description Create a new pack - for admin use only @Security Bearer @Tags Internal @Accept json @Produce json @Param pack body dataset.Pack true "Pack" @Success 201 {object} dataset.Pack @Failure 400 {object} map[string]interface{} "error" @Failure 500 {object} map[string]interface{} "error" @Router /packs [post]
func PostPackContent ¶
Create a new pack content @Summary [ADMIN] Create a new pack content @Description Create a new pack content - for admin use only @Security Bearer @Tags Internal @Accept json @Produce json @Param packcontent body dataset.PackContent true "Pack Content" @Success 201 {object} dataset.PackContent @Failure 400 {object} map[string]interface{} "error" @Failure 500 {object} map[string]interface{} "error" @Router /packcontents [post]
func PutMyPackByID ¶
Update a pack by ID @Summary Update a pack by ID @Description Update a pack by ID @Security Bearer @Tags Packs @Accept json @Produce json @Param id path int true "Pack ID" @Param pack body dataset.Pack true "Pack" @Success 200 {object} dataset.Pack @Failure 400 {object} map[string]interface{} "error" @Failure 500 {object} map[string]interface{} "error" @Router /mypack/{id} [put]
func PutMyPackContentByID ¶
func PutPackByID ¶
Update a pack by ID @Summary [ADMIN] Update a pack by ID @Description Update a pack by ID - for admin use only @Security Bearer @Tags Internal @Accept json @Produce json @Param id path int true "Pack ID" @Param pack body dataset.Pack true "Pack" @Success 200 {object} dataset.Pack @Failure 400 {object} map[string]interface{} "error" @Failure 500 {object} map[string]interface{} "error" @Router /packs/{id} [put]
func PutPackContentByID ¶
Update a pack content by ID @Summary [ADMIN] Update a pack content by ID @Description Update a pack content by ID - for admin use only @Security Bearer @Tags Internal @Accept json @Produce json @Param id path int true "Pack Content ID" @Param packcontent body dataset.PackContent true "Pack Content" @Success 200 {object} dataset.PackContent @Failure 400 {object} map[string]interface{} "error" @Failure 500 {object} map[string]interface{} "error" @Router /packcontents/{id} [put]
Types ¶
This section is empty.