After completing the Building Your First Web API with ASP.NET Core MVC and Visual Studio tutorial, I decided to try building the same API using Visual Studio Code and the .NET Core CLI.
In this article, I will teach how to create API using Visual Studio Code. For this, you need to install VSCode at this link. In this case, I'm using de NET version 5.0 but you can use the version .NET 3.0.