ChrisMichaelPerezSantiago / covid19

This API provides updated real-time data on coronavirus cases from the worldometers page, provided by the most reputable organizations and statistical offices in the world.
MIT License
76 stars 17 forks source link

Can't seem to get :country to work consistently #7

Closed hxhieu closed 4 years ago

hxhieu commented 4 years ago

Hi,

First of all thanks for the API, it looks amazing but I having problem with this particular API /api/v1/ReportsByCountries/:country

It works if I do /api/v1/ReportsByCountries/China But it crashes if I do /api/v1/ReportsByCountries/Japan or /api/v1/ReportsByCountries/New%20Zealand

I am not sure what "country" strings should we use?

Cheers, Hugh

ChrisMichaelPerezSantiago commented 4 years ago

Hi @hxhieu

You should go to the next issue #6 .

In the table you will find the parameters that are valid for now.