handlers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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 NewHandler(account model.Account) *Handler

func (*Handler) ListOfForms

func (h *Handler) ListOfForms(c echo.Context) error

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

func (h *Handler) SubmitNewForm(c echo.Context) error

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]

Jump to

Keyboard shortcuts

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