Prauga.FlexDoc.AspNetCore
0.3.0
See the version list below for details.
dotnet add package Prauga.FlexDoc.AspNetCore --version 0.3.0
NuGet\Install-Package Prauga.FlexDoc.AspNetCore -Version 0.3.0
<PackageReference Include="Prauga.FlexDoc.AspNetCore" Version="0.3.0" />
<PackageVersion Include="Prauga.FlexDoc.AspNetCore" Version="0.3.0" />
<PackageReference Include="Prauga.FlexDoc.AspNetCore" />
paket add Prauga.FlexDoc.AspNetCore --version 0.3.0
#r "nuget: Prauga.FlexDoc.AspNetCore, 0.3.0"
#:package Prauga.FlexDoc.AspNetCore@0.3.0
#addin nuget:?package=Prauga.FlexDoc.AspNetCore&version=0.3.0
#tool nuget:?package=Prauga.FlexDoc.AspNetCore&version=0.3.0
Prauga FlexDoc for ASP.NET Core
Self-contained ASP.NET Core integration for FlexDoc. The NuGet package embeds the canonical FlexDoc browser renderer; it does not reimplement OpenAPI rendering in C# and does not require a CDN at runtime.
Package
Prauga.FlexDoc.AspNetCore 0.3.0
The library targets net8.0, so it can be consumed by supported ASP.NET Core applications on .NET 8 and later runtimes.
Usage
using Prauga.FlexDoc.AspNetCore;
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
// Your application or OpenAPI package exposes this document.
// For .NET 9+ this can be ASP.NET Core's built-in OpenAPI endpoint;
// Swashbuckle, NSwag, or any other OpenAPI producer works too.
app.MapFlexDoc(options =>
{
options.Path = "/docs";
options.SpecUrl = "/openapi/v1.json";
options.Title = "My API";
options.TryItEnabled = true;
});
app.Run();
FlexDocOptions also exposes Expand, TryItDefaultServer, TryItCredentials, and TryItApiClientPersistenceKey. Expand accepts a preset string or string list, while the persistence key accepts a string or false; unset values are omitted from renderer options.
FlexDoc serves the docs shell at /docs and version-fingerprinted renderer assets beneath /docs/__flexdoc/. ASP.NET Core endpoint routing also accepts the equivalent trailing-slash request /docs/; CI exercises both forms. The HTML shell is no-cache; renderer JS/CSS are immutable and self-hosted.
The integration only needs an OpenAPI JSON URL. It deliberately has no dependency on Swashbuckle, NSwag, or a particular OpenAPI generator.
| 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 was computed. 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. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.