Building a Task Manager Using ASP.NET Web API
Most websites are not islands standing alone. They need a server. They rely on a server for both data access and security, among other services.
In this chapter, we will learn how to create a hosted Blazor WebAssembly app. We will learn how to use the HttpClient service to call web APIs, and we will also learn how to use JSON helper methods to make requests to a web API to read, add, edit, and delete data.
The project that we create in this chapter will be a task manager. We will use a multi-project architecture to separate the Blazor WebAssembly app from the ASP.NET Web API endpoints. The hosted Blazor WebAssembly app will use JSON helper methods to read, add, edit, and delete tasks that are stored in a SQL Server database. An ASP.NET core project will host the Blazor WebAssembly app and provide the ASP.NET Web API endpoints. A third project will be used to define the classes that are shared by the other two projects.
...