Member-only story
Creating Postman Tests for API Requests
So you have an API that you are testing but hate having to manually check all of the content of the response body that is returned from the API. This can be a very tedious task! This article will teach you how to create tests for your API calls that will do all of the heavy lifting for you.
This is built off of the tutorial from https://www.guru99.com/postman-tutorial.html
A prerequisite for this is downloading Postman(free from https://www.postman.com/downloads/) and creating an account which is also free.
Creating a Get Request
GET REQUESTS
- GET requests retrieve data from an API. No information is modified from GET calls, you will be receiving information that already exists.
In the URL type in the following request https://jsonplaceholder.typicode.com/users , change the request method to GET and press the send button