rest

package
v0.0.0-...-fc7aeca Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PORT = ":20790"
)

Variables

This section is empty.

Functions

func GetByCounty

func GetByCounty(c echo.Context) error

@Summary Get Zipcode Information @Description get info by county @ID get-info-by-county @Accept json @Produce json @Param county path string true "County name" @Success 200 {array} models.Zipcode @Router /counties/{county} [get]

func GetByCountyCity

func GetByCountyCity(c echo.Context) error

@Summary Get Zipcode Information @Description get info by county and city @ID get-info-by-county-city @Accept json @Produce json @Param county path string true "County name" @Param city path string true "City name" @Success 200 {array} models.Zipcode @Router /counties/{county}/cities/{city} [get]

func GetByStateCity

func GetByStateCity(c echo.Context) error

@Summary Get Zipcode Information @Description get info by state and city @ID get-info-by-state-city @Accept json @Produce json @Param state path string true "State name" @Param city path string true "City name" @Success 200 {array} models.Zipcode @Router /states/{state}/cities/{city} [get]

func GetByStateCounty

func GetByStateCounty(c echo.Context) error

@Summary Get Zipcode Information @Description get info by state and county @ID get-info-by-state-county @Accept json @Produce json @Param state path string true "State name" @Param county path string true "County name" @Success 200 {array} models.Zipcode @Router /states/{state}/counties/{county} [get]

func GetByZipcode

func GetByZipcode(c echo.Context) error

@Summary Get Zipcode Information @Description get info by zipcode @ID get-info-by-zipcode @Accept json @Produce json @Param zipcode path string true "Zipcode value" @Success 200 {object} models.Zipcode @Router /zipcodes/{zipcode} [get]

func NewAPI

func NewAPI() (api *echo.Echo)

Types

This section is empty.

Jump to

Keyboard shortcuts

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