This API consumes the public OpenWeatherMap API. This API works with a web repo (currently in build) to display the weather data it pulls through for a searched-by/specified location. There is a swagger ui if you do not want to run the web repo.
To run this locally you need:
- to add an appsettings.Development.json file and add the below code into it
- to generate a key from OpenWeatherMap and replace 'your key' in the codeblock below with your key
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"ConnectionStrings": {
"OpenWeatherApiKey": "your key",
"OpenWeatherBaseUrl": "https://api.openweathermap.org/"
}
}
- net 8
- ASP.NET Core 8
- Moq
- XUnit
TDD approach.