Skip to content
Browse files

docs

  • Loading branch information...
1 parent 35989ad commit 7084da07ce323339eebb47a0997a163a6a57cc29 @tj committed
Showing with 14 additions and 0 deletions.
  1. +14 −0 Readme.md
View
14 Readme.md
@@ -57,6 +57,20 @@ $ burl PATCH '{"name":"tobi"}' /user/12
$ burl POST [1,2,3] /numbers
```
+## JSON requests from files
+
+ To issue a request with the contents of `./some.json`, instead
+ of writing:
+
+```
+$ curl --data @some.json -H "Content-Type: application/json" http://localhost:3000/
+```
+
+ Simply invoke:
+
+```
+$ POST @some.json /
+```
## Expressive header fields

0 comments on commit 7084da0

Please sign in to comment.
Something went wrong with that request. Please try again.