DavidGroup.Core.SwaggerSetup 1.0.2-develop.4

This is a prerelease version of DavidGroup.Core.SwaggerSetup.
There is a newer version of this package available.
See the version list below for details.
dotnet add package DavidGroup.Core.SwaggerSetup --version 1.0.2-develop.4
                    
NuGet\Install-Package DavidGroup.Core.SwaggerSetup -Version 1.0.2-develop.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DavidGroup.Core.SwaggerSetup" Version="1.0.2-develop.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DavidGroup.Core.SwaggerSetup" Version="1.0.2-develop.4" />
                    
Directory.Packages.props
<PackageReference Include="DavidGroup.Core.SwaggerSetup" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DavidGroup.Core.SwaggerSetup --version 1.0.2-develop.4
                    
#r "nuget: DavidGroup.Core.SwaggerSetup, 1.0.2-develop.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DavidGroup.Core.SwaggerSetup@1.0.2-develop.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DavidGroup.Core.SwaggerSetup&version=1.0.2-develop.4&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=DavidGroup.Core.SwaggerSetup&version=1.0.2-develop.4&prerelease
                    
Install as a Cake Tool

DavidGroup.Core.SwaggerSetup

Release Nuget

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?

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 77 9/21/2026
1.0.2-develop.4 46 9/21/2026
1.0.2-develop.3 47 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