SuperAPI AI Directory

d1-01-dotnet-webapi-init

Coding & development

View repository

Updated 10-16 02:16

About this skill

Day 1 · Step 1 — Create up-api
dotnet new webapi -n up-api

Default template only — no packages, no dotnet run. Verify/add to Program.cs:

builder.Services.AddControllers();
builder.Services.AddCors(options =>
{
    options.AddDefaultPolicy(policy =>
    {
        policy.AllowAnyOrigin()
              .AllowAnyMethod()
              .AllowAnyHeader();
    });
});

var app = builder.Build();

app.UseCors(); app.MapControllers();