rest-countries

command module
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: 17 Imported by: 0

README

Rest Countries Go

Get information about countries via a RESTful API made by Go.

Build:

  • Clone repository.
  • Edit .env file and main.go to change @host var.
  • go get -u
  • swag init .
  • CGO_ENABLED=0 go build -ldflags "-s -w" .

Usage: ./rest-countries

Demo: https://rest-countries-go.herokuapp.com/


Endpoints:

Method Route
GET /api/v1/all
GET /api/v1/name/:name
GET /api/v1/code/:code
GET /api/v1/currency/:currency
GET /api/v1/language/:language
GET /api/v1/capital/:capital
GET /api/v1/calling/:code
GET /api/v1/region/:region
GET /api/v1/regional-block/:block
Note: Look at swagger docs for more information.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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