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:
- Set the request type to
GET. - Add the root endpoint URL to the “Enter request URL” field.
- 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/
We can see the fetched users list in the “Response” textbox above, showing that the ...