http-prompt
http-prompt copied to clipboard
perform subsequent request based on the result of previous one
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?
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!
Thank you! http-prompt is very cool :)