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