December 2019
Intermediate to advanced
510 pages
11h 33m
English
Just like previous chapters, we can start by creating a new project using the web API template. Let's open the terminal and execute the following commands:
mkdir Catalog.APIcd Catalog.APIdotnet new sln -n Catalog.APImkdir srccd srcdotnet new webapi -n Catalog.APIdotnet sln ../Catalog.API.sln add Catalog.API
The first dotnet new command creates a new solution file named Catalog.API. The second dotnet new instruction creates a new web API project in the src folder. Finally, the last dotnet sln command adds the project to our solution.
The resulting filesystem structure looks like the following:
.├── Catalog.API.sln├── src│ ├── Catalog.API│ │ ├── Controllers│ │ ├── Program.cs│ │ ├── Properties│ │ │ └── launchSettings.json ...
Read now
Unlock full access