Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Conflics solved and sources endpoint added
  • Loading branch information
carmelag committed Mar 23, 2020
commit 8bd9cb55b9fd5a9abeeb1ee12ef91b64e8811f9b
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,24 @@ curl https://coronavirus-tracker-api.herokuapp.com/v2/locations | json_pp

## API Endpoints

### Sources Endpoint

Getting the available data-sources

```http
GET /v2/sources
```

__Sample response__
```json
{
"sources": [
"jhu",
"csbs"
]
}
```

### Latest Endpoint

Getting latest amount of total confirmed cases, deaths, and recoveries.
Expand Down Expand Up @@ -233,6 +251,7 @@ __Sample Response__
__Parameter: source__
Getting the data from the data-source specified by the *source parameter*, in this case [csbs](https://www.csbs.org/information-covid-19-coronavirus)


```http
GET /v2/locations?source=csbs
```
Expand Down Expand Up @@ -301,6 +320,7 @@ curl https://coronavirus-tracker-api.herokuapp.com/v2/locations?timelines=1 | js
__NOTE:__ Timelines tracking starts from day 22nd January 2020 and ends to the last available day in the data-source.



## Wrappers

These are the available API wrappers created by the community. They are not necessarily maintained by any of this project's authors or contributors.
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.