Using Postman and Inspect tool in Google Chrome to Test your Web API - Tutorial NO. 02

This is the second tutorial in my list. Today i will explain about following point
  • Installing Postman
  • Test your Web API using Postman
  • How to view and test our Web Request using Google Chrome Inspect tool and more.
Before taking this part of the tutorial i recommend to fallow my previous tutorial:


POSTMAN 


  • First of all you have to install Postman through your google chrome.
  • For that, go to menu in Chrome > More Tools > Extensions 
  • Then it will popup new browser tab with existing extensions.
  •  If you don't have Postman in your system scroll down to the extension page and click "Get More Extensions" Then you can install Postman by searching through web store.
  • Then Open your Postman app (You can open app by searching on windows start menu). 




  • If you want you can signup with the app and then app automatically backup your Web API requests.
  • Now let's test out simple Web API Service using Postman.
  • Open our Sample Project that we created in last tutorial. the debug by pressing F5.
  • After that enter our service URL in postman app.
  • By default the app will select GET request. Otherwise select GET and click send button.



  • Then you can see the output from the body section. In later sessions i will explain how to test POST, PUT, and DELETE methods also.

GOOGLE CHROME

  • Simply right-click on the browser and go to Inspect or just hit 'control+shift+i' shortcut keys.

  • Then you will show all the tools inside the browser. There are many useful tools inside this for developers. then click on 'Network' tab.
  • And Enter the service URL and hit enter.

  • As above image you can see the controller name.
  • Click on the name and you will see the details on request.
  • In Preview tab you can see the response body.
  • In the Headers tab you will see all the general, Request Header, Response Header details  and we may discuss most of the things during the feather sessions.



In next tutorial (Tutorial NO. 03) i will explain little bit about configurations, routing etc. in Web API project 

Comments

Popular posts from this blog

ASP.NET Identity With Oracle Database

Create Custom Attribute - Active Directory

Catch Database Exceptions - DbEntityValidationException - Entity Framework