Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) ListOfForms ¶
ListOfForms godoc @Summary Get all forms here @Description @ID list-form @Tags form @Accept json @Produce json @Success 200 {object} GetAllFormsResponse @Failure 400 {object} utils.Error @Failure 401 {object} utils.Error @Failure 422 {object} utils.Error @Failure 404 {object} utils.Error @Failure 500 {object} utils.Error @Security ApiKeyAuth @Router /form [get]
func (*Handler) SubmitNewForm ¶
SubmitNewForm godoc @Summary Submit new contact forms @Description Register new form here @ID submit-new-form @Tags form @Accept json @Produce json @Param form body SubmitFormRequest true "Form info for registration" @Success 201 {object} NewFormResponse @Failure 400 {object} utils.Error @Failure 404 {object} utils.Error @Failure 500 {object} utils.Error @Router /forms [post]