WebAPI Debugging - Launch Chrome Postman from Visual Studio

I am developing a web API in Visual Studio 2015 and want to use Chrome / Postman to view JSon results.

Is there a way to get Postman to start when I press F5 to start and for Visual Studio it starts a debugging session.

+6
source share
2 answers

Yes, you can!

You need to configure the Web tab of the web API project to launch an external program, pointing it to Chrome and passing parameters to tell Chrome to launch the Postman extension.

In Chrome:

  • Go to chrome: // apps /
  • Right-click the Postman shortcut and create a desktop icon.
  • Right-click the Postman shortcut and browse through the properties, you will find the path and options. Postman extension launch options

In Visual Studio, configure the project properties web tab: Visual Studio Project Properties

Now that you press F5 ... Mail will automatically start.

+5
source

Another way is to add Postman to the Browse With menu:

enter image description here

Selecting Add in the window that appears after clicking the Browse with ... button will open a new form in which you are prompted to enter the path to the Chrome executable file and cmd line arguments to start Postman. (See Mike L. Message for details on receiving them.)

After that, you can select Postman (or any other friendly name you gave it) in the drop-down menu, and F5 will start Postman and begin a debugging session.

+3
source

All Articles