Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 931 Bytes

File metadata and controls

20 lines (14 loc) · 931 Bytes

Weather Data Microservice

Setup Local Development Environment

  1. Install all dependencies using npm i
  2. Run the project with npm run start:dev

Get daily weather

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