mcpField
D
d1-03-swagger

d1-03-swagger

github.com/softinter-chiangraiDevelopment046 installsUpdated 9w ago
Repository

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

  1. 01Check existing OpenAPI setup
  2. 02Add Swashbuckle package
  3. 03Configure Swagger UI

Use cases

  1. 01Expose interactive API documentation
  2. 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-swagger

After installing, type/d1-03-swaggerin Claude Code to confirm it loaded.

Details

From the project README

Day 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