DavidGroup.Core.SwaggerSetup
1.0.0-develop.1
See the version list below for details.
dotnet add package DavidGroup.Core.SwaggerSetup --version 1.0.0-develop.1
NuGet\Install-Package DavidGroup.Core.SwaggerSetup -Version 1.0.0-develop.1
<PackageReference Include="DavidGroup.Core.SwaggerSetup" Version="1.0.0-develop.1" />
<PackageVersion Include="DavidGroup.Core.SwaggerSetup" Version="1.0.0-develop.1" />
<PackageReference Include="DavidGroup.Core.SwaggerSetup" />
paket add DavidGroup.Core.SwaggerSetup --version 1.0.0-develop.1
#r "nuget: DavidGroup.Core.SwaggerSetup, 1.0.0-develop.1"
#:package DavidGroup.Core.SwaggerSetup@1.0.0-develop.1
#addin nuget:?package=DavidGroup.Core.SwaggerSetup&version=1.0.0-develop.1&prerelease
#tool nuget:?package=DavidGroup.Core.SwaggerSetup&version=1.0.0-develop.1&prerelease
DavidGroup.Core.SwaggerSetup
Ready-to-use Swagger configuration for fast and effortless API documentation setup.
🚀 Getting Started
Install NuGet Package
Using the .NET CLI:
dotnet add package DavidGroup.Core.SwaggerSetup
Or via the Package Manager Console:
Install-Package DavidGroup.Core.SwaggerSetup
How to use it?
Feel free to explore the samples to find practical examples for each feature. New samples are added continuously as more features are developed.
📦 Key Features
How to add Swagger
builder.Services.AddDefaultSwagger(swagger => swagger
.WithApiVersioning("Samples API") // add multiple Swagger documents based on available versions
.WithControllerOrdering() // adds support for [SwaggerControllerOrder(0)] attribute
.WithBearerAuth() // configures Swagger to support Bearer authentication
.WithOAuth2(o =>
{
o.AuthorizationUrl = "https://idp.example.com/authorize";
o.TokenUrl = "https://idp.example.com/token";
o.Scopes = ["api.read", "api.write"];
})); // configures Swagger to support OAuth2 authentication
app.UseDefaultSwagger(configure =>
{
configure.RoutePrefix = "swagger"; // default value
configure.RedirectRootToSwagger = true; // default value
configure.OAuthClientId = "SamplesApi"; // default is null
configure.UsePkce = true; // automatically is set to true when .WithOAuth2() is called, can be overriden
});
🤝 Contributing
Found a bug? Have an idea? Want to contribute?
- Submit an issue: https://github.com/david-group-solutions/swagger-setup/issues
- Create a pull request: https://github.com/david-group-solutions/swagger-setup/pulls
Contributions of any size are appreciated!
📝 License
Distributed under the MIT license. See License for more information.
Copyright © 2025-2026 David Khachatryan (David Group Solutions)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Asp.Versioning.Mvc (>= 8.1.0)
- Microsoft.AspNetCore.OpenApi (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.1)
- Microsoft.OpenApi (>= 2.10.0)
- Swashbuckle.AspNetCore (>= 10.1.0)
- Swashbuckle.AspNetCore.Annotations (>= 10.1.0)
- Swashbuckle.AspNetCore.Swagger (>= 10.1.0)
- Swashbuckle.AspNetCore.SwaggerGen (>= 10.1.0)
- Swashbuckle.AspNetCore.SwaggerUI (>= 10.1.0)
-
net8.0
- Asp.Versioning.Mvc (>= 8.1.0)
- Microsoft.AspNetCore.OpenApi (>= 8.0.22)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.1)
- Microsoft.OpenApi (>= 2.10.0)
- Swashbuckle.AspNetCore (>= 10.1.0)
- Swashbuckle.AspNetCore.Annotations (>= 10.1.0)
- Swashbuckle.AspNetCore.Swagger (>= 10.1.0)
- Swashbuckle.AspNetCore.SwaggerGen (>= 10.1.0)
- Swashbuckle.AspNetCore.SwaggerUI (>= 10.1.0)
-
net9.0
- Asp.Versioning.Mvc (>= 8.1.0)
- Microsoft.AspNetCore.OpenApi (>= 9.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.1)
- Microsoft.OpenApi (>= 2.10.0)
- Swashbuckle.AspNetCore (>= 10.1.0)
- Swashbuckle.AspNetCore.Annotations (>= 10.1.0)
- Swashbuckle.AspNetCore.Swagger (>= 10.1.0)
- Swashbuckle.AspNetCore.SwaggerGen (>= 10.1.0)
- Swashbuckle.AspNetCore.SwaggerUI (>= 10.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.2 | 76 | 9/21/2026 |
| 1.0.2-develop.4 | 44 | 9/21/2026 |
| 1.0.2-develop.3 | 46 | 9/21/2026 |
| 1.0.1 | 154 | 7/14/2026 |
| 1.0.1-develop.2 | 66 | 7/14/2026 |
| 1.0.0 | 119 | 7/12/2026 |
| 1.0.0-develop.1 | 66 | 7/12/2026 |