create web api in visual studio 2019 code example Example: aspnet new api dotnet new webapi -o TodoApi