Skip to content

Fix json format parameter#96

Merged
sagarkarira merged 1 commit intosagarkarira:masterfrom
pzygielo:json
Mar 30, 2020
Merged

Fix json format parameter#96
sagarkarira merged 1 commit intosagarkarira:masterfrom
pzygielo:json

Conversation

@pzygielo
Copy link
Contributor

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)

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)
```
@vercel
Copy link

vercel bot commented Mar 28, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/sagark/coronavirus-tracker/dpmd0y4iw
✅ Preview: https://coronavirus-tracker-git-fork-pzygielo-json.sagark.now.sh

@sagarkarira
Copy link
Owner

👍

@sagarkarira sagarkarira merged commit c308b15 into sagarkarira:master Mar 30, 2020
@pzygielo pzygielo deleted the json branch March 31, 2020 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants