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

Can the API return a fatten list of data? #55

Closed
altezza04 opened this issue Mar 16, 2020 · 5 comments · Fixed by #69
Closed

Can the API return a fatten list of data? #55

altezza04 opened this issue Mar 16, 2020 · 5 comments · Fixed by #69
Labels
enhancement New feature or request

Comments

@altezza04
Copy link

altezza04 commented Mar 16, 2020

I am using the this API, and it's great! Thank again.
However is it possible to have another endpoint of all combined Confirmed, Recovered and Deaths in a single object sort by country, it seem that JSON we got now is getting a bit big now, and country , coordinates, province, info are duplicated, a combined data may save a bit of download time. For example a endpoint like: /all_fattened

{
locations
--coordinates
--country
--province
--confirmed
----latest
----history
--deaths
----latest
----history
--recovered
----latest
----history
}

thanks!!

@ExpDev07
Copy link
Owner

This is exactly what I’m working on right now for v2! Will hopefully be done some time today.

@Sem1083
Copy link
Contributor

Sem1083 commented Mar 16, 2020

Maybe add scopes as optional query: /all?scope=recovered%20confirmed%20deaths

@ExpDev07
Copy link
Owner

@Sem1084 yes, something like that shouldn’t be too hard to implement.

@ExpDev07 ExpDev07 added the enhancement New feature or request label Mar 16, 2020
@sagarkarira
Copy link

sagarkarira commented Mar 16, 2020

Hey, @ExpDev07 thanks for the API.

I've made this command line tracker using your API.

I am also exposing flattened JSON of all countries here:
https://corona-stats.online/?format=json
and also country wise https://corona-stats.online/Italy?format=json
if this good enough format for @altezza04 to use.

@altezza04
Copy link
Author

Hey, @ExpDev07 thanks for the API.

I've made this command line tracker using your API.

I am also exposing flattened JSON of all countries here:
https://corona-stats.online/?format=json
and also country wise https://corona-stats.online/Italy?format=json
if this good enough format for @altezza04 to use.
Awesome! that's prefect, thanks! @sagarkarira @ExpDev07
btw, that's my site https://chinavirus.live/

@ExpDev07 ExpDev07 linked a pull request Mar 18, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants