- Install asdf by following steps 1-3 from Getting Started section
- Install asdf-nodejs plugin
- Clone the repository
- Run
asdf install
command - Install the dependencies with
npm i
- Start NestJS with
npm run build
andnpm run start
- Navigate to http://localhost:3001/swagger to checkout the existing endpoints
There is only single endpoint to fetch the weather forecast. You can fetch forecast 7 days ahead by just passing down latitude and longitude parameters:
/api/openweather/forecast/daily/lat/50.450001/lon/30.523333
If you'd like to fetch the weather for only a single day you'll need to specify a date query which must be in ISO8601 format (beware of enabled validation):
/api/openweather/forecast/daily/lat/50.450001/lon/30.523333?date=2022-02-23