Tuesday, November 7, 2023

POSTMAN to test Web API

It is most powerful HTTP client for testing restful web services. Postman makes it easy to test the Restful Web APIs.


Step 1:  Download and install POSTMAN from Postman

Step 2: Once the Postman is successfully installed, open the Postman. It will look like the image shown below.

GET Request using Postman:

Select the HTTP Method as “GET” and enter the URL of your Web API as shown in the below image.









Once you click on the Send button, an HTTP request is sent to the provided URL. The response coming from the Web API Server is displayed in the below image.









POST Request using Postman:

  1. Choose the HTTP verb as POST
  2. Set the URL
  3. Set the Content-Type as application/json. To do this click on the Header tab and provide the key value as shown in the below image
 










Next, we need to provide the string value that we want to add to the string array. We need to provide string values in the request body. To do so click on the body tab and provide the string value as shown below.













No comments:

Post a Comment

Thank you for visiting my blog

Kubernetes

Prerequisites We assume anyone who wants to understand Kubernetes should have an understating of how the Docker works, how the Docker images...