3 ms·
I've bounced around from Postman, to Paw, to Insomnia, and back again for years. I finally dumped a bunch of HTTPie scripts in a folder, made a small runner scr
by pkulak 6y ago
I've bounced around from Postman, to Paw, to Insomnia, and back again for years. I finally dumped a bunch of HTTPie scripts in a folder, made a small runner script in my path, and added autocomplete hooks that just read the filesystem structure.
Now I can run anything from any terminal with history searching. Plus, it's all committed to a repo for anyone else in my org to look at and/or contribute too. I know other tools have collaboration, but can you beat text files + git that you can link to from Slack?
Need to pull an ID out of the third item? Just pipe it to gron and grep. Watch for changes? Put "watch" in front of it. Need to chain three things together? Write a short glue script. It's wonderful.
- anamexis 6y agoThat sounds really nice. Any chance you could share the runner script and other glue you use? Right now I'm mostly using restclient.el[1] which I like, but it's not quite as universally sharable as it could be. [1] https://github.com/pashky/restclient.el https://github.com/pashky/restclient.el
- pkulak 6y agoYeah, it was actually a good day of work to get stood up, mostly around writing a bash script to get and refresh an oauth token (I never use Bash for anything...). I'll see about generalizing and sanitizing it and posting it somewhere.
- unhammer 6y agoWell, you have `M-x restclient-copy-curl-command` (`C-c C-u` by default) to share a single command. There is also Verb mode (org-mode extension) which seems like a nice alternative to restclient.el. Learnt about via Impostman[2] which imports Postman collections to both restclient.el and verb.el [1] https://github.com/federicotdn/verb https://github.com/federicotdn/verb [2] https://github.com/flashcode/impostman/ https://github.com/flashcode/impostman/
- e12e 6y agoInteresting. I never really got Postman - always felt like it was worse than Swagger (when available) and more convoluted than curl. I do use SoapUI a bit; mostly for SOAP services, occasionally for REST services. But I recently found[1] a rust reimplentation of httpie, and some early testing indicates it might be better than curl+jq - bit early to tell. [1] https://news.ycombinator.com/item?id=26042463 https://news.ycombinator.com/item?id=26042463