APIWeaver 2.0.0-preview.2

This is a prerelease version of APIWeaver.
There is a newer version of this package available.
See the version list below for details.
dotnet add package APIWeaver --version 2.0.0-preview.2
                    
NuGet\Install-Package APIWeaver -Version 2.0.0-preview.2
                    
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="APIWeaver" Version="2.0.0-preview.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="APIWeaver" Version="2.0.0-preview.2" />
                    
Directory.Packages.props
<PackageReference Include="APIWeaver" />
                    
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 APIWeaver --version 2.0.0-preview.2
                    
#r "nuget: APIWeaver, 2.0.0-preview.2"
                    
#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 APIWeaver@2.0.0-preview.2
                    
#: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=APIWeaver&version=2.0.0-preview.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=APIWeaver&version=2.0.0-preview.2&prerelease
                    
Install as a Cake Tool

APIWeaver

Pipeline Coverage NuGet Version NuGet Downloads

APIWeaver is a powerful and lightweight library designed to provide a seamless integration Swagger UI into your .NET 9+ apps. APIWeaver supports the latest .NET features and is designed to be future-proof, ensuring support for upcoming .NET and OpenAPI features.

Getting Started

To get started with APIWeaver, you can install the NuGet package using your preferred package manager. In most cases, the package APIWeaver.Swagger is the one you are looking for.

  1. Install the NuGet package
dotnet add package APIWeaver.Swagger
  1. Add the using directive to your Program.cs file
using APIWeaver;
  1. Add the following lines to your Program.cs file.
builder.Services.AddOpenApiDocument();
// other code

if (app.Environment.IsDevelopment())
{
    app.MapOpenApi();
    app.MapSwaggerUi();
}

That's it. You now have a fully functional Swagger UI in your application. The UI can be accessed by navigating to /swagger in your browser 🥳.

Currently supported features

  • Fully functional and configurable Swagger UI
  • Dark mode 🌙
  • Useful extension methods
  • AOT compatible

Roadmap

  • Useful transformers for OpenAPI documents and operations. Like, e.g, For Security schemes.
  • Support for more OpenAPI UIs
  • If I have enough time: API client generation based on the generated OpenAPI document

Work in progress

This project is currently under active development, with ongoing improvements, new features and potential API changes. If you have any feedback, feature requests or issues, please feel free to open an issue or a pull request.

Contribution and Collaboration

Your contributions to this project are welcomed and encouraged. Your active involvement can significantly impact its success!

License

Distributed under the MIT License. See LICENSE for more information. This means APIWeaver will always remain free.

Product Compatible and additional computed target framework versions.
.NET 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 was computed.  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
2.5.0-preview.3 155 9/23/2024
2.5.0-preview.2 76 9/22/2024
2.5.0-preview.1 72 9/22/2024
2.4.2 443 10/9/2024
2.4.1 120 9/13/2024
2.4.0 133 9/6/2024
2.3.0 136 9/3/2024
2.2.0 134 8/28/2024
2.1.0 139 8/27/2024
2.0.0 141 8/26/2024
2.0.0-preview.3 87 8/25/2024
2.0.0-preview.2 95 8/25/2024