create web api project in .net core code example Example: aspnet new api dotnet new webapi -o TodoApi