D
d1-01-dotnet-webapi-init
About d1-01-dotnet-webapi-init
A setup skill that creates the `up-api` ASP.NET Core Web API project with the default template. It includes guidance for configuring controllers and CORS, without adding packages or running the app.
Key features
- 01Create `up-api` from the default template
- 02Configure controllers
- 03Set up a default CORS policy
Use cases
- 01Initialize the `up-api` project
- 02Prepare controller and CORS configuration
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ softinter-chiangrai/ up-ai-skill-training --skill d1-01-dotnet-webapi-initAfter installing, type/d1-01-dotnet-webapi-initin Claude Code to confirm it loaded.
Details
From the project READMEDay 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();
Comments
Markdown supported