- Install all dependencies using
npm i - Run the project with
npm run start:dev
Gets daily weather in Eindhoven for specified period of time.
http://localhost:7000/dailyWeather?startDate={startDate}&endDate={endDate} - API Route
| Parameter | Type | Description |
|---|---|---|
| startDate Required | string | Specifies date of the first daily weather forecast. |
| endDate | string | Specifies date of the last daily weather forecast. Default is the date of sending request. |
Example
http://localhost:7000/dailyWeather?startDate=2022-04-07&endDate=2022-06-15 - returns daily weather for time period between 2022-04-07 and 2022-06-15
http://localhost:7000/dailyWeather?startDate=2022-06-07 - returns daily weather for time period between 2022-06-07 and date of sending request