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

https://github.com/sonalys/flask-api

API for gathering weather information and returning it to the user.
https://github.com/sonalys/flask-api

flask interview-test learning-by-doing

Last synced: about 2 months ago
JSON representation

API for gathering weather information and returning it to the user.

Awesome Lists containing this project

README

          

# Requerimentos
## Bibliotecas
```
Python 3.7.0
Flask 1.1.1
Flask-RESTful 0.3.7
Flask-SQLAlchemy 2.4.1
SQLAlchemy 1.3.11
requests 2.22.0
```
## Arquivos de configuração
***Token de Acesso da API do ClimaTempo(config.py)***
```
token = "TOKEN_DE_ACESSO"
```

# Instalação
```
python3 -m venv env
. env/bin/activate
pip install -r requirements.txt
```

# Execução
```
python run.py
```
Roda em
```
localhost:5000
```

# Rotas
### ***/analise?data_inicial=yyyy-mm-dd&data_final=yyyy-mm-dd***
* Pesquisa a cidade com maior temperatura
* Devolve a média de precipitação por cidade
### ***/cidade?id=\***
* Cadastra a temperatura dos últimos 15 dias da cidade selecionada