How to Check Web Service in Postman
How to Check Web Service in Postman
Back to: ASP.Internet Web API Tutorials For Begineers and Professionals
How to use POSTMAN to test Spider web API Services
In this article, I am going to discuss how to use POSTMAN to test Web API Services with examples. We are going to work with the same example that we created in our Creating first web API application article , so please read that commodity before proceeding to this commodity. As part of this article, we are going to talk over the following pointers.
- What is Postman?
- How to download and Install Postman?
- How to test Web API Services using Postman?
- Understanding the Request and Response of Postman.
- How to use Postman to test Get, Postal service, Put and Delete Request?
What is POSTMAN?
The Postman is the about pop and the about powerful HTTP customer for testing the restful web services. Postman makes it piece of cake to test the Restful Web APIs, as well equally it develops and documents Restful APIs by allowing the users to quickly put together both elementary and circuitous HTTP requests. The Postman is available as both a Google Chrome in-browser app and Google Chrome Packaged App.
The packaged app version of Postman provides many avant-garde features that include OAuth 2.0 support and bulk uploading/importing that are not available with the Google Chrome in-browser app version. The in-browser version includes a few features, such every bit session cookies support, that are not however available in the packaged app version.
Let'south come across how to use POSTMAN to transport an HTTP request to our local ASP.Cyberspace Spider web API Services and cheque the response.
Pace 1: Download and install POSTMAN fromPostman
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 "Go" and enter the URL of your Web API as shown in the below prototype.
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 paradigm.
Every bit y'all tin see in the above image, the HTTP response shows information and response status. Thus, you lot can also utilise Postman to test your Web API.
Mail service Request using Postman:
- Choose the HTTP verb as Post
- Gear up the URL
- Set the Content-Blazon as awarding/json. To do this click on the Header tab and provide the key value as shown in the below image
Adjacent, we need to provide the cord value that we want to add to the string array. We need to provide string value in the request torso. To practise and so click on the body tab and provide the string value as shown below.
Once you lot provided the cord value in the request body, click on the send button which will issue a post request to the spider web API. In the same mode, you lot can test the PUT and DELETE Requests. In this commodity series, nosotros are going to use the tool Fiddler and Postman to test the services.
In the next article, I am going to discuss working with the SQL Server Database . Here, in this article, I try to explain how to employ POSTMAN to exam web API. I promise this article will help y'all with your needs.
How to Check Web Service in Postman
Posted by: madelynsumbracked.blogspot.com
Comments
Post a Comment