Introduction

Visual Studio Code (VSCode) is the preferable code editor for most developers. If we are developing any API using VSCode and wants to test that API, then we will use some other tools to test the API. But hereafter no need to leave from VSCode for testing the API also. I have created one VSCode extension to test the REST API called "Fetch Client". In this article, we are going to learn what is "Fetch Client" and how to use it.

What is Fetch Client?

"Don't leave from VSCode, Stay with it - For Rest API testing. 😎

Fetch Client is Visual Studio Code extension that is used to test the Rest API.

Why Fetch Client?

How to Install?

How to use?

Features

1) UI Customization

We can customize the UI in different modes.

Horizontal mode - Accordian View
Horizontal mode - Accordian View

Horizontal mode - Split View
Horizontal mode - Split View

Vertical mode - Split View
Vertical mode - Split View

2) Different HTTP Methods

Fetch client supports to test the Rest API request with various HTTP methods such as GET, POST, PUT, PATCH, DELETE, HEAD and OPTIONS.

3) Query Parameter

Fetch client supports to test the Rest API request with query parameter.

4) Authorization

Fetch client supports below authorization methods for Rest API testing.

5) Headers

We can add the headers for API testing. Fetch Client gives suggestions on various headers and corresponding values in the header section.

6) Request Body

7) Test

8) Response Data

9) Test Results

10) Notes

Notes section is used to add the notes or documentation regarding the request. Fetch client has simple editor to add the documentation.

11) Code Snippet

Fetch client supports code snippet generation for various languages. Generate code snippets to send request from another application. Open request view and click icon (right side of the response section) for code snippet generation. The code snippet generation is available for following languages.

11) Request Cancel

Fetch client provides the feature for cancel the request. If you want to cancel the processing request then click then "Cancel Request" button in the response section.

12) Quick Access

Fetch client provides the quick access of History, collection and Environment variables in the side bar.

12) Run All requests

Keyboard Shortcuts

Configuration

Summary

In this article, you learned about how to use and test REST API using "Fetch Client" VSCode extension.