Skip to content

Conversation

@Turreted
Copy link
Contributor

This adds a new endpoint to /v2/ where users can query for information by country. Example: /v2/country?country=Ireland returns {"country":"Ireland","country_code":"IE","latest":{"confirmed":683,"deaths":3,"recovered":5}}

Copy link
Owner

@ExpDev07 ExpDev07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to pull the latest changes. The JHU (location) service is now attached to the request (see the latest route for example).

Secondly, “country” is not RESTful, you should use /countries/:country_code or name

@Turreted Turreted closed this Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants