From the course: Building Angular and ASP.NET Core Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Web API architectural overview

Web API architectural overview

From the course: Building Angular and ASP.NET Core Applications

Start my 1-month free trial

Web API architectural overview

- [Instructor] The .NET new Angular command created some default files within the solution. Now this solution has both the Web API and Angular project-related files. On this part we'll have a look at the Web API project. And on the next one, on the Angular project. So for that let's go to Visual Code. In Visual Code, in Explorer we are going to see the ClientApp folder. Now this folder has the Angular-related files, so we're not going to discuss about that now. The next folder is the Controllers folder. Inside this folder we can find all the Web API controllers. So for example we have the WeatherForecastCotroller, and this controller has a single API endpoint, the Get endpoint. The next, we have the Pages folder. Inside this folder we have three files, and the most important one is the ViewImports.cshtml, which is used to import all the necessary libraries that we can use throughout the views. For example, the TagHelpers.…

Contents