Skip to content

Commit

Permalink
xh: fix example with POSTing JSON Body
Browse files Browse the repository at this point in the history
Co-authored-by: Starbeamrainbowlabs <[email protected]>
  • Loading branch information
gbaranski and sbrl committed Apr 19, 2021
1 parent ef319c8 commit 0579078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/common/xh.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

`xh {{httpbin.org/get}}`

- Send a POST request with JSON body (each key specified is added to the top-level JSON object e.g. `{"name": "john", "age": 25}`):
- Send a POST request with a JSON body (key-value pairs are added to a top-level JSON object - e.g. `{"name": "john", "age": 25}`):

`xh post {{httpbin.org/post}} {{name=john}} {{age:=25}}`

Expand Down

0 comments on commit 0579078

Please sign in to comment.