APIWeaver 2.0.0-preview.2
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
<PackageReference Include="APIWeaver" Version="2.0.0-preview.2" />
<PackageVersion Include="APIWeaver" Version="2.0.0-preview.2" />
<PackageReference Include="APIWeaver" />
paket add APIWeaver --version 2.0.0-preview.2
#r "nuget: APIWeaver, 2.0.0-preview.2"
#:package APIWeaver@2.0.0-preview.2
#addin nuget:?package=APIWeaver&version=2.0.0-preview.2&prerelease
#tool nuget:?package=APIWeaver&version=2.0.0-preview.2&prerelease
APIWeaver
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.
- Install the NuGet package
dotnet add package APIWeaver.Swagger
- Add the using directive to your Program.cs file
using APIWeaver;
- 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 | Versions 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. |
-
net9.0
- APIWeaver.OpenApi (>= 2.0.0-preview.2)
- APIWeaver.Swagger (>= 2.0.0-preview.2)
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 |