Swashbuckle.AspNetCore generates OpenAPI documents from ASP.NET Core apps and serves an embedded Swagger UI to explore and test endpoints.
Overview
Swashbuckle.AspNetCore adds OpenAPI generation and interactive documentation to ASP.NET Core APIs. It produces Swagger 2.0 and OpenAPI 3.x JSON from application code and hosts a bundled swagger-ui for trying operations against live services.
Maintainers align releases with ASP.NET Core and Microsoft.OpenApi versions, including support for newer OpenAPI 3.2 output in recent major lines. Related packages expose ReDoc or integrate with third-party schema enhancers.
Once an API describes itself with OpenAPI, teams can feed the spec into client generators and other OpenAPI-aware tooling without maintaining separate doc sources.
Key features
- OpenAPI document generation
- Embedded Swagger UI
- OpenAPI 3.2 support
- ASP.NET Core integration
- Optional ReDoc embedding
- Living docs from code
- Swagger 2 compatibility
- Extensible schema filters
Use cases
- Documenting REST APIs
- Interactive API testing
- Generating client SDKs
- Keeping specs with code