-
Book Overview & Buying
-
Table Of Contents
Web Development with Blazor - Fourth Edition
By :
When running Blazor using WebAssembly (InteractiveWebAssembly or InteractiveAuto), everything runs in the browser. That means we can't use the direct database calls we created earlier. Instead, we need to create an API that the client can communicate with to retrieve and update data on the server. For that to work, we need an API to access the data.
In this chapter, we will create a web API using Minimal API. When using Blazor Server, the API will be secured by the page (if we add an Authorize attribute), so we get that for free. But with WebAssembly, everything will be executed in the browser, so we need something that WebAssembly can communicate with to update the data on the server.
To do this, we will need to cover the following topics: