Skip to content

Consumes the public OpenWeatherMap API, and is called by a web solution to display weather for a specified location.

Notifications You must be signed in to change notification settings

SarahDuncan/weather-forecast-api-aspnetcore

Repository files navigation

Weather Forecast API

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:

  1. to add an appsettings.Development.json file and add the below code into it
  2. 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/"
  }
}

Tech stack:

  • net 8
  • ASP.NET Core 8
  • Moq
  • XUnit

TDD approach.

About

Consumes the public OpenWeatherMap API, and is called by a web solution to display weather for a specified location.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages