api/subnamesapce/controller in api .net core code example Example: aspnet new api dotnet new webapi -o TodoApi