Search⌘ K

Testing the Endpoints Using Postman

Learn how to test APIs using Postman.

Testing the API endpoints

With the help of Postman, we can start testing endpoints.

Testing a GET request endpoint

A GET request is an HTTP request used to fetch data from a source.

We can demonstrate this using the user-listing endpoint with a GET request, by taking the following steps:

  1. Set the request type to GET.
  2. Add the root endpoint URL to the “Enter request URL” field.
  3. Send the request by clicking the “Send” button.

The user-listing endpoint that is supposed to list the registered users in the current project instance below:

0.0.0.0:3000/users/
A GET request demo in Postman
A GET request demo in Postman

We can see the fetched users list in the “Response” textbox above, showing that the ...