Arshid.Aspire.ApiDocs.Extensions
1.0.1
See the version list below for details.
dotnet add package Arshid.Aspire.ApiDocs.Extensions --version 1.0.1
NuGet\Install-Package Arshid.Aspire.ApiDocs.Extensions -Version 1.0.1
<PackageReference Include="Arshid.Aspire.ApiDocs.Extensions" Version="1.0.1" />
<PackageVersion Include="Arshid.Aspire.ApiDocs.Extensions" Version="1.0.1" />
<PackageReference Include="Arshid.Aspire.ApiDocs.Extensions" />
paket add Arshid.Aspire.ApiDocs.Extensions --version 1.0.1
#r "nuget: Arshid.Aspire.ApiDocs.Extensions, 1.0.1"
#addin nuget:?package=Arshid.Aspire.ApiDocs.Extensions&version=1.0.1
#tool nuget:?package=Arshid.Aspire.ApiDocs.Extensions&version=1.0.1
<p align="center"> <a href="https://github.com/zandiarash/Arshid-Aspire-ApiDocs-Extensions"> <img src="https://github.com/user-attachments/assets/e0324879-a50d-43ec-9cbf-6a5d241e6ee0"> </a> </p>
<h1 align="center">Arshid Aspire ApiDocs Extensions</h1>
An extension to add Swagger, OpenApi, Scalar, CustomUrl and CustomRoute to .Net Aspire.
You can have ApiDocs and also your custom links in your .Net Aspire Dashboard like this :
📦 How To
Simply add this nuget package
Arshid.Aspire.ApiDocs.Extensions
Then add these lines for the project that has Swagger, Scalar or etc.
📦 Example
using Arshid.Aspire.ApiDocs.Extensions;
var apiService = builder.AddProject<Projects.AspireApp1_ApiService>("apiservice")
.WithScalar()
.WithSwagger()
.WithOpenApi()
.WithCustomUrl("https://127.0.0.1:5000/CustomRoute/CustomPage1")
.WithRoute("/CustomRoute/CustomPage2"); //The URL become something like this {protocol}://{url}:{port}/CustomRoute/CustomPage2
If you are not familiar with Swagger, Scalar, OpenApi and similar tools please read from this article :
net-9-revolutionizing-documentation-of-apis-from-swashbuckle-to-scalar
🤝 Contributing is welcome
If you would like to contribute, please feel free to create a Pull Request.
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. |
-
net9.0
- Aspire.Hosting.AppHost (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.