http-prompt icon indicating copy to clipboard operation
http-prompt copied to clipboard

perform subsequent request based on the result of previous one

Open glyph opened this issue 9 years ago • 2 comments

I want to do something like this:

http://localhost:8080/> cd https://api.example.com/v1/objects
https://api.example.com/v1/objects> delete `get | jq -cr .entities[0].url | tr -d '\n'`

But it seems that "get", "delete", et. al. are not shell commands, so they cannot be composed like this.

Is there a way to use the value of an HTTP request in the next HTTP request directly?

glyph avatar Apr 06 '17 08:04 glyph

Currently this is not possible. Backquote substitution only works with shell commands. But it's a nice suggestion, we can put this in the roadmap. Thanks!

eliangcs avatar Apr 06 '17 10:04 eliangcs

Thank you! http-prompt is very cool :)

glyph avatar Apr 06 '17 10:04 glyph