Introduction to ASP.NET Web API
Get introduced to the concepts we will learn in this chapter.
We'll cover the following
Overview
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 in order 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 on SQL Server. An ASP.NET core project will provide the ASP.NET Web API endpoints.
In this chapter, we will cover the following topics:
Understanding hosted applications
Using the
HttpClient
serviceUsing JSON helper methods
Creating the
TaskManager
project
Get hands-on with 1400+ tech skills courses.