Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandlers ¶
func NewHandlers(instance *echo.Echo, r *Controller)
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(repository person.Repository) *Controller
func (Controller) Get ¶
func (r Controller) Get(c echo.Context) error
@Summary Get Persons @Description Get Persons @Tags Person @Accept json @Produce json @Param page path string true "Page" @Success 200 {object} person.Person @Failure 400 id person.Person @Router /api/v1/ [get]
func (Controller) GetBySlug ¶
func (r Controller) GetBySlug(c echo.Context) error
Click to show internal directories.
Click to hide internal directories.