This API is using 3 other APIs to fetch informations about weather. Open Weather Map - general informations ClimaCell - precipitation climate data - to get climate info about this year
yarn install
yarn run start
yarn run test
yarn run tslint
Middleware | Reason |
---|---|
body-parser | We need to access the body of a request |
helmet | Adds some protection to the application and removes things like the X-Powered-By header from a request |
axios | We need to fetch data from weather api |
Method | Endpoint | Reason |
---|---|---|
GET | /weather/forecast?location=Lodz, Poland | Get forecast for given location (fetched from "Open Weather Map" and "ClimaCell") |
GET | /weather/climate?location=Lodz | Get climate info about this year |