postmanlabs / covid-19-apis

Postman COVID-19 API Resource Center—API collections to help in the COVID-19 fight.
https://covid-19-apis.postman.com/
MIT License
128 stars 40 forks source link

API Suggestion: API based on Johns Hopkins CSSE data #111

Closed elitemaks closed 4 years ago

elitemaks commented 4 years ago

Hi, I'd like to suggest the API developed by our team. It's based on public data provided by Johns Hopkins CSSE. Website - https://covid-api.com/

ProBeta1 commented 4 years ago

Is it just me who is unable to access the Documentation redirection ?

elitemaks commented 4 years ago

@ProBeta1 thanks for noticing, fixed.

ProBeta1 commented 4 years ago

Postman Collection : Link

kinlane commented 4 years ago

Thanks for the collection -- queuing it up for adding to our list. Thanks.

ProBeta1 commented 4 years ago

https://github.com/postmanlabs/covid-19-apis/pull/119

kinlane commented 4 years ago

Ok this has been included in #122 and upon review it will be merged.

elitemaks commented 4 years ago

@ProBeta1 hi, I checked the doc, and it seems like there Is missing base URL. All requests are listed like /regions, but the user cannot see the full request URL with base URL.

Documentation - https://documenter.getpostman.com/view/10724784/SzYXWz3x?version=latest

Base URL - https://covid-api.com/api

elitemaks commented 4 years ago

@ProBeta1 also, there is an error in the response format for /reports - we do not provide multiple regions in one call. It should be report => { "region": { "cities": [] } },

instead of

report => { "region": [ { "cities": [] }, { "cities": [] } ] },

ProBeta1 commented 4 years ago

@elitemaks Thanks for noticing . I generated the collection directly using Import . I'll check the issue.

ProBeta1 commented 4 years ago

@elitemaks Have a look now :blush: And please check the original documentation , the response for the second request and the example iso code "CHN" is returning Server Error ..

elitemaks commented 4 years ago

@ProBeta1 thanks for fixing and thank you for noticing too! Fixed.

elitemaks commented 4 years ago

@ProBeta1 Hi, we added a new endpoint, /reports/total, here is an example - https://covid-api.com/api/reports/total?date=2020-04-07

Please let me know, what is the correct way of submitting changes to the documentation here.

ProBeta1 commented 4 years ago

Okay , I will add it .

ProBeta1 commented 4 years ago

@elitemaks Added :)

elitemaks commented 4 years ago

@ProBeta1 thank you, but is there a way I can edit documentation myself? We evolve this API and I need to reflect changes in the doc. Please advise.

ProBeta1 commented 4 years ago

Yeah @elitemaks , indeed there is . You need to fork the collection in your Postman App locally and then make the desired changes . When done , you may create a pull request , which would then be merged in the original collection.