DEV Community

loading...
Cover image for No Need Postman, Your VSCode is Enough for Testing Your API 😎⚑

No Need Postman, Your VSCode is Enough for Testing Your API 😎⚑

dzun_n profile image Dzun N ・2 min read

hey you allπŸ‘‹

A couple week ago I've found Lightweight ⚑ and simple πŸ˜‹ tools for testing my API. That's Thunder Client.

Thunder Client

image

Thunder Client is Rest API Client Extension for Visual Studio Code, with simple and clean design. The extension makes api testing very easy with Scriptless GUI based testing. and created by Ranga Vadhineni.

Thunder Client has many Main Features such as :

  • List item
  • Lightweight API Client
  • Simple & Clean UI
  • Collection & Environment Variables
  • Scriptless Testing

πŸ’» How to install it ?

  • It'a easy, just go to Extension menu in sidebar VSCode, and install it:
    image

  • And you'll see the thunder client icon in sidebar
    image

Let's try test Thunder Client

  • For testing API, I use a dummy api that's SWAPI(The Star Wars API).

https://swapi.dev/

  • Get request

    image

  • Set Environment

    image

Now you can try more by your self πŸ™ŒπŸ™Œ, have nice try.

Conclusion

Thunder Client is Rest API Client Extension for Visual Studio Code, with simple and clean design. The extension makes api testing very easy with Scriptless GUI based testing. and created by Ranga Vadhineni.

NB: It does'nt means Thunder Client is better then postman, not. Postman still has more feature than Thunder client. Thunder Client made for own use and simple API testing

Discussion (13)

Collapse
pzelnip profile image
Adam Parkin

Thunder Client does look cool, but just an FYI: it is not open source (which is of course also true of Postman). This matters around API testing tools as if (for example) you're hitting API endpoints which require auth, then any credentials you supply will go through that tool, so you have to trust that the authors/maintainers of that tool don't do anything questionable with those credentials. If the source is open, then you have the ability to examine the code to help alleviate this concern.

A similar extension is REST Client: marketplace.visualstudio.com/items... which is open source (github.com/Huachao/vscode-restclient).

Note that I'm not saying that Thunder Client is bad, or that REST Client is better, just that for my use cases REST Client is more aligned with my values (I personally don't use VS Code extensions unless they are open source), so sharing for others who would like similar options.

Collapse
samuelmunoz profile image
Samuel Munoz

It has its flaws. When you use a Basic or Bearer token for authentication and change tabs, the token suddenly disappears. I'm sticking with Insomnia.

Collapse
ranga_vadhineni profile image
Ranga Vadhineni

Hi Samuel, I am creator of Thunder Client. In Auth what ever tab is active it will take values from that tab, so if you want basic auth set the values leave that as active.

Let me know if you have any further questions.

Collapse
mniak profile image
Andre Soares

If I may suggest, we should be able to save the requests as files and then each workspace could have its own set of collections

Thread Thread
ranga_vadhineni profile image
Ranga Vadhineni

Hi Andre, the request is saved in json files. And you can also save collections per workspace, see Team Features on our GitHub page.

Collapse
dzun_n profile image
Dzun N Author

it seem has bug. you may give feedback and report it.

Collapse
dthomason profile image
David

This is really cool, I used insomnia for a while now. This will make it one less step to take to quickly check a response during building or t-shooting. One feature that would be super sweet though is to have the ability to right click in an api sdk and make new request with it. Also swagger scraping would be pretty sweet too.

Anyways, thanks for the tip.

Collapse
janejeon profile image
Jane Jeon

This looks BASICALLY the same as Insomnia (down to the UI), just in VSC?

Collapse
dzun_n profile image
Dzun N Author

I think so, in daily I use insomnia, now it has more clean UI

Collapse
chadalen profile image
Chad Alen

This is awesome. I’ll have to try it out. πŸ™‚

Collapse
dzun_n profile image
Dzun N Author

have nice trying

Collapse
rhmankml profile image
Miftah Rahman

Nice post dude

Collapse
dzun_n profile image
Forem Open with the Forem app