package
0.0.0-20241126070708-799c4e13a4d4
Repository: https://github.com/muhammadardie/echo-cms.git
Documentation: pkg.go.dev
# Functions
Create Testimony godoc @Summary Create testimony @Description Create a testimony content @ID create-testimonies @Tags Testimonies @Accept mpfd @Produce json @Security Bearer @Param avatar formData file true "Testimony avatar" @Param comment formData string true "Testimony comment" @Param username formData string true "Testimony username" @Success 200 {object} Testimonies @Failure 400 {object} utils.HttpError @Failure 401 {object} utils.HttpError @Router /testimonies [post].
Delete Testimony godoc @Summary Delete a testimony @Description Delete a testimony @ID delete-testimony @Tags Testimony @Accept json @Produce json @Security Bearer @Param id path string true "ID of the testimony" @Success 200 {object} Testimonies @Failure 400 {object} utils.HttpError @Failure 401 {object} utils.HttpError @Router /testimonies/{id} [delete].
Find Testimony godoc @Summary Find testimony by ID @Description Find testimony by ID @ID find-testimonies @Tags Testimonies @Accept json @Produce json @Security Bearer @Param id path string true "ID of the testimony to get" @Success 200 {object} utils.HttpSuccess{data=Testimonies} @Failure 400 {object} utils.HttpError @Failure 401 {object} utils.HttpError @Router /testimonies/{id} [get].
Get Testimony godoc @Summary Get recent testimony @Contentription get most recent testimony @ID get-testimonies @Tags Testimonies @Accept json @Produce json @Security Bearer @Success 200 {object} utils.HttpSuccess{data=[]Testimonies} @Failure 400 {object} utils.HttpError @Failure 401 {object} utils.HttpError @Router /testimonies [get].
No description provided by the author
Update Testimony godoc @Summary Update testimony @Description Update testimony @ID update-testimony @Tags Testimony @Accept mpfd @Produce json @Security Bearer @Param id path string true "ID of testimony to get" @Param avatar formData file false "Testimony avatar" @Param comment formData string false "Testimony comment" @Param username formData string false "Testimony username" @Success 200 {object} Testimonies @Failure 400 {object} utils.HttpError @Failure 401 {object} utils.HttpError @Router /testimonies/{id} [put].
# Structs
No description provided by the author