From the course: Building Angular and ASP.NET Core Applications

Unlock the full course today

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

Testing API endpoints using Postman

Testing API endpoints using Postman

From the course: Building Angular and ASP.NET Core Applications

Start my 1-month free trial

Testing API endpoints using Postman

- [Tutor] Now that we have created all the API endpoints that we needed, it's time to implement the Angular client App to consume them. But before we do so, let us test the work as expected. And to test them, we're going to use Postman and I'm assuming that you have already installed it, if not, you can get it from their website. So now, let's go to Visual Code and run our project. In here, right click and then go to Open in Terminal and write in here, dotnet run. Now that we see that our app was compiled successfully, let us scroll up to the localhost 5001 and copy this link. Go to Postman and create a new request. Let us paste the URL that we just copied in here and then write, /api/Books/GetBooks. And click the Send button to send a request. So in here we see that we get all the books that we have in our collection which means that the GET API for getting all books works fine. Now, let us test the single book API.…

Contents