The following assumptions were made during the implementation:
- Either county, or state name is supposed to be provided
- Hence, service provides six end-points: three for state and three for county
- Service uses Web API to project CSV-file hosted in GitHub - https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_US.csv.
- The file is a part of https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series project supposed to be uploaded daily.
- Paging is introduced for large sets of data
- Project is continuously deployed in Azure test environment at https://app-av-covidservice-test.azurewebsites.net/swagger/index.html
How to build the project:
- Optionally update DockerfileRunArguments variable in launchSettings.json if you are launching using Docker profile
- Open Visual Studio 2022 and hit build all solution
How to run the project locally:
- Set CovidService as an active project and Start without a debugging(Ctrl-F5)
- Swagger document is available at http://localhost:5000/swagger/index.html
- Postman collection is included in Covid\CovidService.postman_collection.json
- Import Postman collection into Postman and use collection to test the service out
How to a access the project deployed in Azure:
- Open swagger URL https://app-av-covidservice-test.azurewebsites.net/swagger/index.html
- Use swagger, or Postman collection included with the project to run APIs
- To use Postman, you may need to set {{serverUrl}} variable to https://app-av-covidservice-test in the corresponding PostMan environment