From the course: Building Web APIs with ASP.NET Core 8

Why an API?

- [Christian] In this course, we will be creating APIs with .NET. Well, with ASP.NET Core to be specific. Remember what was previously called .NET Core is now called .NET, but the web portion is still ASP.NET Core. Not to confuse it with ASP.NET based on the legacy .NET framework. But I digress, let's talk more about building web APIs with ASP.NET Core 8, that is part of .NET 8. So why do we need such an API in the first place? The idea is that we have certain types and pieces of information, certain data that we would like to share and provide it to very different types of clients, such as web applications, mobile apps, native applications, maybe even desktop application. All of those clients should use a uniform contract, the same language, the same format, so to speak, to communicate with the API. And that is the whole idea, at least in a nutshell. So we have different clients that try to consume data, and they are using an API to facilitate that. We will be using .NET for that, and you will see how easy it is to achieve that, and we will also adhere to certain standards. Let's go!

Contents