This API Aggregator consolidates data from the following external APIs
- News API: https://newsapi.org/
- OpenWeatherMap API: https://openweathermap.org/api
- RestCountries Api: https://restcountries.com/
and provides a unified endpoint to access the aggregated information.
Tech Stack
- .NET 9.0
- ASP.NET Core
- xUnit
- Swagger
NuGet Packages
- Newtonsoft.Json (version 13.0.3)
- Swashbuckle.AspNetCore (version 7.2.0)
- Asp.Versioning.Mvc (version 8.1.0)
- Asp.Versioning.Mvc.ApiExplorer (version 8.1.0)
Solution Structure
API Documentation
On the Main Page you can see all the available endpoints
The main operation is the Aggregator. The Aggregator consolidates data from the following external APIs:
- News API - example: https://newsapi.org/v2/everything?q=bitcoin&apiKey=[YourApiKey]
- OpenWeatherMap API - example: https://api.openweathermap.org/data/2.5/weather?q=London,uk&appid=[YourApiKey]
- RestCountries Api - example: https://restcountries.com/v3.1/currency/euro
In addition, there is the Statistics operation which is responsible for recording statistics.
Acknowledgements
I would like to thank you for your time. I am at your disposal for any clarification.