3 ms·
I use httpie's CLI tool for testing application/json endpoints. That and some jq really can make some things nice. (Apparently it has a GUI version as well, bu
by _flux 3y ago
I use httpie's CLI tool for testing application/json endpoints. That and some jq really can make some things nice.
(Apparently it has a GUI version as well, but I'm not interested in trying it.)
- hackernoteng 3y agoI also have fallen back to just using curl + jq and a set of saved commands since both postman and insomnia have decided to make my life harder not easer. good old plain unix command line tools never fails you.
- _flux 3y agoYou may consider giving httpie cli a test drive, if you are dealing with json endpoints. You can put in Bearer header and JSON arguments quite easily with http localhost:1234/end/point Authorization:$bearertoken arg1=hello arg2:='{"a":42}' and get colorized JSON out from it. I use my script called Authorization to fish out the bearer token so in my case the call is just http .. "`Authorization`" .. So while one can achieve the same with some jq+curl, it perhaps is a bit more prepackaged in httpie.