From the course: Building and Securing RESTful APIs in ASP.NET Core

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Test with Postman

Test with Postman - ASP.NET Core Tutorial

From the course: Building and Securing RESTful APIs in ASP.NET Core

Start my 1-month free trial

Test with Postman

- [Instructor] In this course, I'll be using Postman to make HTTP requests to the API. But you can use Fiddler, Perl, or any other HTTP client that you prefer. I'll compile and run this project by clicking Play in Visual Studio. When the project was created, it randomly was assigned a port, and we can find that port in launchsettings.json. ASP.NET Core 2.0 and beyond enable HTTPS by default, so look for the sslPort property and copy this port number. Now I'll open up Postman. And I wanna make a Get request to HTTPS, Local Host colon 44350, in my case. The new route control rebuild responds with a JSON document that includes the absolute URL of the route itself. This API is not doing anything groundbreaking quite yet, but we do know that everything is working. If you can't seem to get a response from your API, even though the address and port number are correct, Postman might be rejecting the self-signed HTTPS certificate that ASP.NET Core uses in development mode. You can turn this…

Contents