Archives
-
Pass a JSON Web Token (JWT) to minimal API using fetch()
In the previous article we learned to call Web API and minimal API using fetch(). Many a times your APIs are secured using JSON Web Token (JWT) based authentication scheme. And you need to pass the JWT while making API calls. In this part of the article we will learn to do just that.
-
Call ASP.NET Core Web API and Minimal API using fetch() -- Part 2
In the previous article we created a Web API controller and minimal APIs that perform CRUD operations on the Customers table. Now it's time to call our APIs from our UI. We could have used a plain HTML page for housing the UI elements but we will use the same MVC view that we have created in the previous examples of this series.