|
|
|
This `GET` request will get you all countries and Coronavirus cases.
|
|
|
|
|
|
|
|
***
|
|
|
|
Basepath: `https://developerfromjokela.com/coronatracker`
|
|
|
|
|
|
|
|
URL: `/api/v1/countries`
|
|
|
|
|
|
|
|
Request type: `GET`
|
|
|
|
|
|
|
|
Error response:
|
|
|
|
|
|
|
|
{
|
|
|
|
"status":true,
|
|
|
|
"cause": "Demo error!"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Successful response _`(there's more countries, this is an example)`_:
|
|
|
|
|
|
|
|
{
|
|
|
|
"status":true,
|
|
|
|
"countries":[
|
|
|
|
{
|
|
|
|
"countryCode":"CN",
|
|
|
|
"countryName":"China",
|
|
|
|
"location":{
|
|
|
|
"lat":35.86166,
|
|
|
|
"lng":104.195397
|
|
|
|
},
|
|
|
|
"infected":81058,
|
|
|
|
"extra":{
|
|
|
|
"confirmed":80881,
|
|
|
|
"deaths":3226,
|
|
|
|
"recovered":68715,
|
|
|
|
"critical":3226
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"refreshDate":"2020-03-17 16:50:01",
|
|
|
|
"cacheTime":"2020-03-17 16:50:14"
|
|
|
|
} |
|
|
\ No newline at end of file |