DEV Community

Cover image for How to use Insomnia to Test API Endpoints

How to use Insomnia to Test API Endpoints

Katie McKnight on October 18, 2019

So you're building an app that makes various HTTP requests, eh? You know how to make the API calls, whether you're using a library or good ole .fet...
Collapse
 
liyasthomas profile image
Liyas Thomas

We've build Postwoman (postwoman.io) a web online, open sourced API request builder. Might come handy to test APIs without installing another electron app, and can be used on mobile, tablet etc.

GitHub: github.com/liyasthomas/postwoman

Collapse
 
kmcknight91 profile image
Katie McKnight

OH MY GOSH... I know what I'll be playing with later on today 😻

Collapse
 
liyasthomas profile image
Liyas Thomas • Edited

You should! Share among your friends & teams. All paid features of postman is being implemented in postwoman. And its free and always will be open source.

We're open for contributions 🙏😉

Collapse
 
lazar955 profile image
Lazar Lukic

Insomnia is much more powerful than shown here unfortunately. You can define environment variables, put constant value in them or extract a value from response and save them in environment variable. This is very useful when testing dependant routes. Generate client code from your request (e.g CURL), saved me a ton of time when you are in VPN on a server machine and calling you service. Almost forgot, plugins, simply install with npm, themes and much much more.

Collapse
 
xergiodf profile image
Sergio David Fernández

I recently switched from insomnia to postman due not having a way to sync your workspace as postman has. Waiting for this feature someday to switch back.

Collapse
 
bennett1412 profile image
Bennett B Madavana • Edited

We can store our collection as a github repo and sync with as we do with any other remote repo
Not sure if this is new but thought it might be helpful.

Collapse
 
kmcknight91 profile image
Katie McKnight

Absolutely! There are so many awesome features of Insomnia that I didn't include in this quick tutorial.

Collapse
 
lazar955 profile image
Lazar Lukic

If you have the time, make a follow up. I just want what's the best for the Insomnia, to be presented in the best light. Thanks

Collapse
 
cembreyfarquhar profile image
Chance

Wow this is so cool!!

Collapse
 
tylippe profile image
Ty Lippe

Thank you Katie! Backend has always been my favorite and being lost in Insomnia was spooky, this article caught me back up!

Collapse
 
chingoduc profile image
chingoduc

Hi,
Thanks for this excellent tutorial on Insomnia. However, I cannot go through some topics where an authorization is needed. Could you help?