In the previous section, we created our first simple Web API project. Now we will learn how to test Web API locally to check request & response during development.
We can use the following third party tools for testing Web API.
Postman is a free debugging proxy for any browser. We can use it to compose and execute different HTTP requests to our Web API and check HTTP response. Let's see how to use Postman to send an HTTP request to our local Web API and check the response.
Step 1: Download and install Postman- Open Google and type --> "postman for chrome" or "postman for firefox". I am going to explain about chrome extention as shown in below image.
Step 2: Click on "Postman - Chrome Web Store" link then you will get following screen shot.
Click on ADD To CHROME button and please wait for few minutes. After insttalation you will show LAUNCH APP button. Then you will get following screen shot image.
- Postman
- Fiddler
Postman is a free debugging proxy for any browser. We can use it to compose and execute different HTTP requests to our Web API and check HTTP response. Let's see how to use Postman to send an HTTP request to our local Web API and check the response.
Step 1: Download and install Postman- Open Google and type --> "postman for chrome" or "postman for firefox". I am going to explain about chrome extention as shown in below image.
Step 2: Click on "Postman - Chrome Web Store" link then you will get following screen shot.
Click on ADD To CHROME button and please wait for few minutes. After insttalation you will show LAUNCH APP button. Then you will get following screen shot image.