Configure Swagger/OpenAPI documentation for affolterNET.Web.Api. Use when setting up API documentation, customizing Swagger UI, or configuring OpenAPI metadata.
Configures Swagger/OpenAPI documentation for affolterNET.Web.Api. Use when setting up API documentation, customizing Swagger UI, or configuring OpenAPI metadata.
/plugin marketplace add Mcafee123/affolterNET.Web/plugin install affolternet-web-api@affolternet-webThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Configure Swagger/OpenAPI documentation for your API.
For complete reference, see Library Guide.
{
"affolterNET": {
"Web": {
"Swagger": {
"Enabled": true,
"Title": "My API",
"Version": "v1",
"Description": "API documentation for My Application"
}
}
}
}
| Property | Type | Default | Description |
|---|---|---|---|
Enabled | bool | true (dev) | Enable Swagger UI and endpoint |
Title | string | "API" | API title in Swagger UI |
Version | string | "v1" | API version |
Description | string | null | API description |
RoutePrefix | string | "swagger" | URL prefix for Swagger UI |
{
"affolterNET": {
"Web": {
"Swagger": {
"Enabled": true
}
}
}
}
In production, set Enabled to false or remove the configuration.
{
"affolterNET": {
"Web": {
"Swagger": {
"Enabled": true,
"RoutePrefix": "api-docs"
}
}
}
}
Access at: https://your-api.com/api-docs
When authentication is enabled, Swagger UI will include the authorization header configuration for testing authenticated endpoints.
Use XML comments for API documentation:
/// <summary>
/// Gets all users
/// </summary>
/// <returns>List of users</returns>
/// <response code="200">Returns the list of users</response>
/// <response code="401">Unauthorized</response>
[HttpGet]
[ProducesResponseType(typeof(List<User>), 200)]
[ProducesResponseType(401)]
public IActionResult GetUsers() { ... }
Enable XML documentation in your .csproj:
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>
Enabled is true in configurationRoutePrefix matches your expected URLConfigure Static Application Security Testing (SAST) tools for automated vulnerability detection in application code. Use when setting up security scanning, implementing DevSecOps practices, or automating code vulnerability detection.