Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.)



I 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.


You 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: