routes

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDemoSwag added in v0.0.3

func GetDemoSwag(c echo.Context) error

GetDemoSwag example @Summary get random json file @Description get json file @Produce json @Success 200 {string} string "ok" @Router /demoswag [get]

func GetRequest

func GetRequest(c echo.Context) error

GetRequest example @Summary Add a new pet to the store @Description get string by ID @ID get-string-by-int @Accept json @Produce json @Param some_id path int true "Some ID" @Success 200 {string} string "ok" @Router /request/{some_id} [get]

func GetSwagger

func GetSwagger(c echo.Context) error

Types

type Request

type Request struct {
	Protocol      string
	Host          string
	RemoteAddress string
	Method        string
	Path          string
	Headers       http.Header
}

Jump to

Keyboard shortcuts

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