Making Requests Using REST Client
Learn about using the REST Client extension in Visual Studio Code to make requests and test different scenarios.
We'll cover the following
Making GET requests using REST Client
We will start by creating a file for testing GET
requests:
Step 1: If the REST Client by Huachao Mao (humao.rest-client) is not installed, install it in Visual Studio Code now.
Step 2: In your preferred code editor, open the PracticalApps
solution or workspace and then start the Northwind.WebApi
project web service.
Step 3: In Visual Studio Code, in the PracticalApps
folder, create a RestClientTests
folder, and then open the folder.
Step 4: In the RestClientTests
folder, create a file named get-customers.http
, and modify its contents to contain an HTTP GET request to retrieve all customers, as shown in the following code:
Get hands-on with 1400+ tech skills courses.