Skip to content

Commit c8d15b6

Browse files
authored
Update README.md
1 parent d594345 commit c8d15b6

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

README.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ Getting latest amount of total confirmed cases, deaths, and recovered.
6969
GET /v2/latest
7070
```
7171

72+
__Query String Parameters__
73+
| __Query string parameter__ | __Description__ | __Type__ |
74+
| -------------------------- | -------------------------------------------------------------------------------- | -------- |
75+
| source | The data-source where data will be retrieved from *(jhu/csbs)*. Default is *jhu* | String |
76+
7277
__Sample response__
7378
```json
7479
{
@@ -80,12 +85,6 @@ __Sample response__
8085
}
8186
```
8287

83-
__Query String Parameters__
84-
| __Query string parameter__ | __Description__ | __Type__ |
85-
| -------------------------- | -------------------------------------------------------------------------------- | -------- |
86-
| source | The data-source where data will be retrieved from *(jhu/csbs)*. Default is *jhu* | String |
87-
88-
8988
### Locations Endpoint
9089

9190
Getting latest amount of confirmed cases, deaths, and recovered per location.
@@ -100,11 +99,16 @@ __Path Parameters__
10099
| ------------------ | --------------------- | ------------------------------------------------------------------------- | -------- |
101100
| id | OPTIONAL | The unique location id for which you want to call the Locations Endpoint. | Integer |
102101

102+
__Query String Parameters__
103+
| __Query string parameter__ | __Description__ | __Type__ |
104+
| -------------------------- | -------------------------------------------------------------------------------- | -------- |
105+
| source | The data-source where data will be retrieved from *(jhu/csbs)*. Default is *jhu* | String |
103106

104107
#### Example Request
105108
```http
106109
GET /v2/locations/39
107110
```
111+
108112
__Sample response__
109113
```json
110114
{
@@ -136,6 +140,13 @@ __Sample response__
136140
GET /v2/locations
137141
```
138142

143+
__Query String Parameters__
144+
| __Query string parameter__ | __Description__ | __Type__ |
145+
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | -------- |
146+
| source | The data-source where data will be retrieved from.<br>__Value__ can be: *jhu/csbs*. __Default__ is *jhu* | String |
147+
| country_code | The ISO ([alpha-2 country_code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)) to the Country/Province for which you're calling the Endpoint | String |
148+
| timelines | To set the visibility of timelines (*daily tracking*).<br>__Value__ can be: *0/1*. __Default__ is *0* (timelines are not visible) | Integer |
149+
139150
__Sample response__
140151
```json
141152
{
@@ -181,14 +192,6 @@ __Sample response__
181192
}
182193
```
183194

184-
__Query String Parameters__
185-
| __Query string parameter__ | __Description__ | __Type__ |
186-
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | -------- |
187-
| source | The data-source where data will be retrieved from.<br>__Value__ can be: *jhu/csbs*. __Default__ is *jhu* | String |
188-
| country_code | The ISO ([alpha-2 country_code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)) to the Country/Province for which you're calling the Endpoint | String |
189-
| timelines | To set the visibility of timelines (*daily tracking*).<br>__Value__ can be: *0/1*. __Default__ is *0* (timelines are not visible) | Integer |
190-
191-
192195
__Response definitions__
193196
| __Response Item__ | __Description__ | __Type__ |
194197
| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | -------- |

0 commit comments

Comments
 (0)