Re:Show HN: A simple, fast and user-friendly alternative to ...
by joshka on Tuesday October 10, 2017 @05:40AM
(#15440547)
and nor should it. If you think the unix way and use a tool that excels in that you'll find your path to success (e.g. jq).
$ userId=$(http get https://jsonplaceholder.typicode.com/posts/1 | jq '.userId')
$ http get "https://jsonplaceholder.typicode.com/users/$userId" | jq '{name,email}'
{
"name": "Leanne Graham",
"email": "[email protected]"
}
I can't see anywhere in the httpie docs about capturing variables from and/or running tests on the HTTP responses - it's an extremely powerful feature of Postman when you're debugging non-trivial HTTP flows.