Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Update README with example of hook on POST
Browse files Browse the repository at this point in the history
The only existing examples are for GET and don't have a body.
  • Loading branch information
josterpi authored and pashky committed Apr 29, 2021
1 parent abc307b commit a97dcc4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -154,6 +154,12 @@ Varaibles can also be set based on the body of a response using the per-request
# set a variable :my-var using a more complex jq expression (requires jq-mode)
GET https://httpbin.org/json
-> jq-set-var :my-var .slideshow.slides[0].title

# hooks come before the body on POST
POST http://httpbin.org/post
-> jq-set-var :test .json.test

{"test": "foo"}

# File uploads

Expand Down

0 comments on commit a97dcc4

Please sign in to comment.