Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2 has landed! #69

Merged
merged 11 commits into from
Mar 18, 2020
Merged

Version 2 has landed! #69

merged 11 commits into from
Mar 18, 2020

Conversation

ExpDev07
Copy link
Owner

@ExpDev07 ExpDev07 commented Mar 18, 2020

Version 2 is now here. This adds a whole new complexity to the core and introduces a new concept behind a location (it is now more flattened: #55).

Endpoints added:

New endpoints!

Getting latest statistics

This gets the latest global statistics for confirmed cases, deaths, and recoveries.

GET /v2/latest

Getting locations

This retrieves all the locations. If you see, they all have an ID attached to them.

GET /v2/locations

You can also filter the locations by a alpha2-country code (#54). For Norway:

GET /v2/locations?country_code=NO

Getting a single location which includes the timelines.

You use the ID assigned to the locations to access them alone (#42). Through this endpoint, you'll also get the timelines associated with it.

GET /v2/location/:id

E.g: For Norway:

GET /v2/location/39

What happens to the old endpoints (/all, /confirmed, /deaths, and /recovered)?

They'll stay around for legacy reasons and not to break peoples' apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant