Dado um CEP, verifica a temperatura do local.
docker-compose up --build
Porta padrão: 8080
Utilize a rota GET /temperatura/{cep}
onde o valor do CEP deve ser somente números.
Ex: curl http://localhost:8080/temperatura/22460900
Response ex: { "temp_C": 28.5, "temp_F": 28.5, "temp_K": 28.5 }
- 200: Success
- 422: Invalid zipcode
- 404: can not find zipcode
Acesse a api pelo endereço:
https://temperatura-por-cep-vnsou6jiaa-uc.a.run.app
Ex: https://temperatura-por-cep-vnsou6jiaa-uc.a.run.app/temperatura/22460900
Na raíz do projeto, execute go test ./...