Configure Swagger/OpenAPI documentation for affolterNET.Web.Bff. Use when setting up API documentation or customizing Swagger UI.
Configure Swagger/OpenAPI documentation for affolterNET.Web.Bff. Use when setting up API documentation or customizing Swagger UI.
/plugin marketplace add Mcafee123/affolterNET.Web/plugin install affolternet-web-bff@affolternet-webThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Configure Swagger/OpenAPI documentation for your BFF.
For complete reference, see Library Guide.
{
"affolterNET": {
"Web": {
"Swagger": {
"Enabled": true,
"Title": "My BFF API",
"Version": "v1",
"Description": "Backend-for-Frontend API documentation"
}
}
}
}
| Property | Type | Default | Description |
|---|---|---|---|
Enabled | bool | true (dev) | Enable Swagger UI |
Title | string | "API" | API title |
Version | string | "v1" | API version |
Description | string | null | API description |
RoutePrefix | string | "swagger" | URL prefix |
The BFF exposes these endpoints in Swagger:
| Endpoint | Description |
|---|---|
/bff/account/login | Initiates login |
/bff/account/logout | Logs out user |
/bff/account/user | Current user info |
/api/* | Proxied API routes |
/// <summary>
/// User profile operations
/// </summary>
[ApiController]
[Route("api/[controller]")]
public class ProfileController : ControllerBase
{
/// <summary>
/// Gets the current user's profile
/// </summary>
/// <returns>User profile data</returns>
/// <response code="200">Profile retrieved</response>
/// <response code="401">Not authenticated</response>
[HttpGet]
[Authorize]
[ProducesResponseType(typeof(UserProfile), 200)]
[ProducesResponseType(401)]
public IActionResult GetProfile() { ... }
}
{
"affolterNET": {
"Web": {
"Swagger": {
"Enabled": true // Set false in production
}
}
}
}
Or use environment-specific configuration:
// appsettings.Development.json
{
"affolterNET": {
"Web": {
"Swagger": {
"Enabled": true
}
}
}
}
// appsettings.Production.json
{
"affolterNET": {
"Web": {
"Swagger": {
"Enabled": false
}
}
}
}
Configure 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.