Sending GET and POST requests
For creating requests, the user must be within a workspace and click on the + button next to the Overview tab. This is the simplest way to create a new API request. A new tab with various request details opens, as shown in Figure 7.4. This is commonly referred to as a request dashboard in Postman:
Figure 7.4 – New API request
Now, let us see how to make a GET API request.
Making a GET API request
We will be using the https://www.boredapi.com/api/activity API to get an understanding of GET requests. Bored is a free API that returns some random activities to do when bored. Postman makes it easy to get a simple GET API request without any authorization working. Just paste the API URL in the URL section of the request window and hit the Send button next to it. Every request to the server must be made with a URL to fetch the required response. Figure 7.5 shows the GET request with the response. Here, the Status section...