2
Getting Started with ASP.NET Core Web APIs
ASP.NET Core is a cross-platform, open-source web application framework for building modern, cloud-enabled web applications and APIs. It is primarily used with the C# programming language. ASP.NET Core provides features to help you build web apps in various ways – for example, through ASP.NET MVC, web APIs, Razor Pages, Blazor, and so on. This book will mainly cover web APIs. In this chapter, we will learn how to build a simple REST web API with ASP.NET Core.
In this chapter, we’ll be covering the following topics:
- Setting up the development environment
- Creating a simple REST web API project
- Building and running the project
- Understanding the MVC pattern
- Dependency injection (DI)
- Introduction to minimal APIs
This chapter will provide you with the necessary information to create a basic REST web API project with ASP.NET Core. By the end of this chapter, you should have a better understanding of the steps required to create your first ASP.NET Core web API project.