Live data from Hacker News

Insomnia 3.0 – A simple and beautiful REST API client

insomnia.rest

151–156 of 156 posts

Re: Insomnia 3.0 – A simple and beautiful REST API client

#151

I keep hoping one of these clients will add IPython/Jupyter style notebook specifically for REST calls. I would love to produce a tutorial that has well formatted URLs with params, bodies, headers and pre-saved results that could also be rerun against local server.

You can build this workflow using Postman Collections - chain calls + tests + other logic.

Re: Insomnia 3.0 – A simple and beautiful REST API client

#152
post #150

Nice, one thing that gets me paying for https://paw.cloud is the ability to chain requests ie. GET /things -> GET /things/{things.first.id} -> PUT /things/{things.first.id} -> DELETE /things/{things.first.id}

Postman can do that and a lot more as it has a proper scripting runtime. The runtime can be executed outside of Postman too so you are not tied to the GUI want to automate things (with build systems etc.). Chaining as a feature in itself is something we are working on along with speeding up workflows around variables (environments, globals etc.) [Postman founder here]

I guess it's a matter of choice, but we see Paw as a visual tool that makes it easy to setup a request (or a set of requests) to iterate quickly when developing an API or discovering a new one. Because of that, we try to keep actions intuitive and keep scripting as a last resort (JS scripts & extensions are available in Paw too, btw).

I know from experience as an iOS developer (then Python backend guy) that when working on a given project, our mind is already full of business logic. We don't want to add another level of complexity due to the tools we use. And we're writing enough code elsewhere to not want to write code in an app.

As of scripting used for "unit" testing, we have thought about it many time for Paw. And while we will do something somewhat related in the near future, it's a slippery slope. A robust API should have unit tests written with mocks and be part of the server code, not a few assertions made in a 3rd party app. We're quite biased here: many users want this feature, but we don't want to encourage bad practices (as it may be interpreted by some as "ok let's not write proper tests, there's Paw for that").

Anyway, that was to share my point of view as a Paw guy :)

Re: Insomnia 3.0 – A simple and beautiful REST API client

#153

Nice, one thing that gets me paying for https://paw.cloud is the ability to chain requests ie. GET /things -> GET /things/{things.first.id} -> PUT /things/{things.first.id} -> DELETE /things/{things.first.id}

Not saying it's necessarily easier or better, but I tend to end up doing such things in Bash with curl/wget and jq: https://stedolan.github.io/jq/

Re: Insomnia 3.0 – A simple and beautiful REST API client

#155
post #43

Nice, one thing that gets me paying for https://paw.cloud is the ability to chain requests ie. GET /things -> GET /things/{things.first.id} -> PUT /things/{things.first.id} -> DELETE /things/{things.first.id}

Coming soon... ;)

I was looking into doing this today. Specifically, I needed to reference a particular property (a token in the JSON/XML content) in future requests. The docs discuss using the nunjucks templating engine, and nunjucks supports setting variables in the template. But there's no clear indication how I could set the environment variables using the response data (either manually, automatically, or using some hybrid by pre-defining buttons to set values).

I'll be interested to hear when you have some sort of chaining or environment variable setting in place.

Re: Insomnia 3.0 – A simple and beautiful REST API client

#156
post #20

A lot of people here have been mentioning Postman but my personal go-to has been Advanced Rest Client [1]. It's open source, has Google Drive integration, and seems to have a pretty impressive development rate. For me, it's a definite plus that there isn't a paid tier so the developers don't have any incentive to limit the free product. That said, Insomnia looks like a nice contender and I look forward to giving it a…

For me, it's a shame it's a chrome app, rather than a plain ol'd desktop app. Having to fire up chromium to run something this simple seems like an overkill.
Post reply on HN