mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-12 04:54:52 +03:00
xh: fix example with POSTing JSON Body
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
This commit is contained in:
parent
ef319c8240
commit
0579078491
@ -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}}`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user