Skip to content

Commit 6cfe27e

Browse files
committed
Fix json format parameter
Current doc: ``` $ curl -i https://corona-stats.online?json=true HTTP/2 200 content-type: text/html; charset=utf-8 ... (HTML follows) ``` with `format` parameter: ``` $ curl -i https://corona-stats.online?format=json HTTP/2 200 content-type: application/json; charset=utf-8 ... (JSON follows) ```
1 parent fd4ad7a commit 6cfe27e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/constants.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,13 @@ https://corona-stats.online/uk?source=2&minimal=true (with source and countr
249249
250250
---------------------------------------------------------------------------------
251251
252-
# Get data as JSON - Add ?json=true
252+
# Get data as JSON - Add ?format=json
253253
254254
## Example:
255-
https://corona-stats.online?json=true
256-
https://corona-stats.online/Italy?json=true (with country filter)
257-
https://corona-stats.online/?source=2&json=true (with source)
258-
https://corona-stats.online/uk?source=2&json=true (with source and country)
255+
https://corona-stats.online?format=json
256+
https://corona-stats.online/Italy?format=json (with country filter)
257+
https://corona-stats.online/?source=2&format=json (with source)
258+
https://corona-stats.online/uk?source=2&format=json (with source and country)
259259
260260
---------------------------------------------------------------------------------
261261

0 commit comments

Comments
 (0)