View live demo of API response here:
https://covidapi.onrender.com/totalcases
https://covidapi.onrender.com/recovered
https://covidapi.onrender.com/cases
COVID-19 pandemic wikipedia webpage: https://en.wikipedia.org/wiki/COVID-19_pandemic
Run npm install to install dependencies
Run npm start to start the server
Make GET request to the following API endpoints to see the response
API endpoint: http://localhost:3000/totalcases
example response:
{
"confirmedCases": "6075786"
}API endpoint: http://localhost:3000/recovered
example response:
{
"recoveredCases": "2571797"
}API endpoint: http://localhost:3000/cases
example response:
[
{
"country": "United States",
"cases": "1806332"
},
{
"country": "Brazil",
"cases": "499966"
},
{
"country": "Russia",
"cases": "405843"
},
]