Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/paulo-lopes-estevao/enza-api

Api shows various data from the countries of the world
https://github.com/paulo-lopes-estevao/enza-api

api apiworld country countryapi golang world

Last synced: about 2 months ago
JSON representation

Api shows various data from the countries of the world

Awesome Lists containing this project

README

        

# Microservice API Enza

Enza API é um projeto totalmente grátuito e tem como objectivo apresentar informações dos Paises por *Continentes*.

- Desenvolvido em `Golang` ela apresenta nformações como :
- Nome do Pais
- Bandeira
- Mapa
- Capital
- Moeda
- Idioma
- População
- Codigo telefonico

## Endpoints

| Method | Endpoint | Description | BP | QP |
| :---: | :---: | :---: | :---: | :---: |
| GET | /v1/coutry | It returns the details of all countries |
| GET | /v1/coutry/{name} | It returns the details of the referred country |

## Response

```json
{
"Flag" : string,
"Location" : string,
"Keywords" : []string,
"Name" : string,
"Capital" : string,
"Population" : float64,
"Area" : float64,
"Callingcode" : string,
}
```

## JSON data response

> Example List `/v1/africa`

```json
{
"flag": "",
"location": "",
"keywords": [""],
"name": "",
"capital": "",
"currency": "",
"language": "",
"population": 0,
"area": 0,
"callingcode": ""
}
```

---

© 2021 Paulo-Lopes-Estevao