About d1-03-swagger
A project skill for configuring Swagger UI in an ASP.NET Core API. It checks for existing OpenAPI setup first and describes how to add Swashbuckle when a UI is needed.
Key features
- 01Check existing OpenAPI setup
- 02Add Swashbuckle package
- 03Configure Swagger UI
Use cases
- 01Expose interactive API documentation
- 02Add Swagger UI to an ASP.NET Core API
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ softinter-chiangrai/ up-ai-skill-training --skill d1-03-swaggerAfter installing, type/d1-03-swaggerin Claude Code to confirm it loaded.
Details
From the project READMEDay 1 · Step 3 — Swagger
Check up-api/Program.cs first — recent dotnet new webapi templates already scaffold OpenAPI
(AddOpenApi() / MapOpenApi()). If Swagger UI specifically is wanted (not just the raw OpenAPI JSON),
add Swashbuckle:
cd up-api
dotnet add package Swashbuckle.AspNetCore
In Program.cs:
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
// ...
app.UseSwagger();
app.UseSwaggerUI();
Comments
Markdown supported