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