All ASP.NET Core web templates have a similar structure. The main difference lies in the views folder, which is not present in web API projects.
Before proceeding, let's have a more detailed look at the resulting content of the SampleAPI folder:
- Program.cs is the main entry point of the application, and it runs the default web server used by APIs.
- Startup.cs defines and configures our application pipeline and services.
- The Controllers folder contains all the controllers for our application. According to the default naming convention, ASP.NET Core searches in this folder for the controllers of our app.
- Properties/launchSettings.json file represents the settings for our project. This file is created when you try to change ...