Skip to content

A simple REST API that can be used to analyze data of globally confirmed cases. It provides multiple endpoints which can be used to fetch data of COVID-19 cases by date, country. Varying cases in the region.

Notifications You must be signed in to change notification settings

azharrnaeem/covid-19-impactanalysis-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COVID-19-impactanalysis-api

A simple REST API that can be used to analyze data of globally confirmed cases. It provides multiple endpoints which can be used to fetch data of COVID-19 cases by date, country. Varying cases in the region.

Configurations

The spring configurations are placed in application.yml file inside resources directory. User name and password are used for authentication whereas for authorization JWT is used. Two tokens are returned in response of login request. One is access token whereas other one is refresh token that can be used to get new token. Upon getting new token previous token is invalidated. JWT token expiry and signature key configurations are available in application.yml

The data source of COID is also configurable as URL. CSV parser is only written for Johns Hopkins' data source. Its URL was given in assignment document.

Build

To build locally type mvn clean install.

Run

To run using dockers

On Windows:** docker-compose.exe up On Mac/Linux: docker-compose up

Documentation:

All documentation can be found at (after running application) http://localhost:8080/swagger-ui.html

About

A simple REST API that can be used to analyze data of globally confirmed cases. It provides multiple endpoints which can be used to fetch data of COVID-19 cases by date, country. Varying cases in the region.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published