Templates for APIs
Today, it is almost a rule that applications use API-based endpoints. This is because they provide a high level of security and interoperability by not depending on a particular technology or operating system, and they can be scaled according to the existing demand. Also, we can implement advanced architecture, such as microservices using APIs, where all our business logic is distributed in small isolated and standalone services.
Due to the great importance of being able to develop solutions based on APIs, Visual Studio 2022 incorporates a special template so that we can create APIs based on .NET 6, which we can search by filtering the api
term, as can be seen in Figure 4.12:
Once we have selected the template, we will have to fill in the complementary information, according to our needs, as seen in Figure 4.13: