How to Test Your API inside VSCODE

How to Test Your API inside VSCODE

·

2 min read

Hey All 👋 .

Recently I got to know about a VS Code extension called Thunder Client⚡⚡ which can be used to test our API inside VS Code. How Cool 😎 is that to test our API in the editor that we use all the time.

Thunder Client is a GUI-based Rest Api HTTPS client and has a very clean UI and easy-to-use interface.

One of the key highlights of this extension is Scriptless Testing

As we need to write a lot of boilerplate code in Postman and other clients to do basic testing using scripting like status code equal 200. In Thunder client, there is a GUI-based test where we can select a couple of dropdowns to do most standard tests very easily without any scripting knowledge. As you can see in the image below

🖥 How to install

  • First of all open your VS Code and Click on extensions on the sidebar and install thunder client.

Alt Text

  • now you will see a icon on side bar Alt Text

##Lets test Thunder client a little bit

  • for testing you can create your own API or you can use

gorest.co.in

and get your authentication token and you are good to go.

below you can see Thunder Client in action in Below GIF

  • GET request

Alt Text

  • POST request in which we create a GUI based Test

Alt Text

Now you can play around thunder client a little more.

Let me know your thoughts about it 😃and if you like it share it with others.

end

Â