controllers

package
v0.0.0-...-ad5256f Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAll

func GetAll(c *fiber.Ctx) error

GetAll godoc @Summary Get all countries. @Tags Main @Accept */* @Produce json @Success 200 {object} map[uint]interface{} @Router /all [get]

func GetByCallingCode

func GetByCallingCode(c *fiber.Ctx) error

GetByCallingCode godoc @Summary Search countries by calling code. @Tags Main @Accept */* @Produce json @Success 200 {object} map[uint]interface{} @Failure 404 {object} map[string]interface{} @Param code path string true "Calling Code" @Router /calling/{code} [get]

func GetByCapital

func GetByCapital(c *fiber.Ctx) error

GetByCapital godoc @Summary Search countries by capital city. @Tags Main @Accept */* @Produce json @Success 200 {object} map[uint]interface{} @Failure 404 {object} map[string]interface{} @Param capital path string true "Capital city" @Router /capital/{capital} [get]

func GetByCode

func GetByCode(c *fiber.Ctx) error

GetByCode godoc @Summary Search countries by ISO 3166-1 code. @Description Single (tr), Plural (tr;gb;usa). @Tags Main @Accept */* @Produce json @Success 200 {object} map[uint]interface{} @Failure 404 {object} map[string]interface{} @Param code path string true "ISO 3166-1 Code" @Router /code/{code} [get]

func GetByCurrrency

func GetByCurrrency(c *fiber.Ctx) error

GetByCurrrency godoc @Summary Search countries by ISO 4217 currency code. @Tags Main @Accept */* @Produce json @Success 200 {object} map[uint]interface{} @Failure 404 {object} map[string]interface{} @Param currency path string true "ISO 4217 Currency Code" @Router /currency/{currency} [get]

func GetByLanguage

func GetByLanguage(c *fiber.Ctx) error

GetByLanguage godoc @Summary Search countries by ISO 639-1 language code. @Tags Main @Accept */* @Produce json @Success 200 {object} map[uint]interface{} @Failure 404 {object} map[string]interface{} @Param language path string true "ISO 639-1 Language Code" @Router /language/{language} [get]

func GetByName

func GetByName(c *fiber.Ctx) error

GetByName godoc @Summary Search countries by name or native name. @Tags Main @Accept */* @Produce json @Success 200 {object} map[uint]interface{} @Failure 404 {object} map[string]interface{} @Param name path string true "Name, Native Name" @Param fullText query bool false "Fulltext Search" @Router /name/{name} [get]

func GetByRegion

func GetByRegion(c *fiber.Ctx) error

GetByRegion godoc @Summary Search countries by region. @Description Regions: Africa, Americas, Asia, Europe, Oceania. @Tags Main @Accept */* @Produce json @Success 200 {object} map[uint]interface{} @Failure 404 {object} map[string]interface{} @Param region path string true "Region" @Router /region/{region} [get]

func GetByRegionalBlock

func GetByRegionalBlock(c *fiber.Ctx) error

GetByRegionalBlock godoc @Summary Search countries by regional block. @Description Blocks: @Description - EU (European Union) @Description - EFTA (European Free Trade Association) @Description - CARICOM (Caribbean Community) @Description - PA (Pacific Alliance) @Description - AU (African Union) @Description - USAN (Union of South American Nations) @Description - EEU (Eurasian Economic Union) @Description - AL (Arab League) @Description - ASEAN (Association of Southeast Asian Nations) @Description - CAIS (Central American Integration System) @Description - CEFTA (Central European Free Trade Agreement) @Description - NAFTA (North American Free Trade Agreement) @Description - SAARC (South Asian Association for Regional Cooperation) @Tags Main @Accept */* @Produce json @Success 200 {object} map[uint]interface{} @Failure 404 {object} map[string]interface{} @Param block path string true "Regional Block" @Router /regional-block/{block} [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

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