A REST API to check the current weather.
https://goweather.herokuapp.com/weather/Curitiba
https://goweather.herokuapp.com/weather/{city}
go build
./weather-api
curl http://localhost:3000/weather/{city}
curl http://localhost:3000/weather/Curitiba
{
"temperature":"29 °C",
"wind":"20 km/h",
"description":"Partly cloudy",
"forecast":[
{
"day":1,
"temperature":"27 °C",
"wind":"12 km/h"
},
{
"day":2,
"temperature":"22 °C",
"wind":"8 km/h"
}
]
}
Few web clients of the API and their Projects:
-
Client: https://reacttempo.netlify.app/
Project: https://github.com/GabrielCampos99/appTempo -
Client: https://emaniaditya.github.io/weather-app
Project: https://github.com/emaniaditya/weather-app/
The MIT License (MIT)