Franz.Common.Http.Documentation
3.0.0
dotnet add package Franz.Common.Http.Documentation --version 3.0.0
NuGet\Install-Package Franz.Common.Http.Documentation -Version 3.0.0
<PackageReference Include="Franz.Common.Http.Documentation" Version="3.0.0" />
<PackageVersion Include="Franz.Common.Http.Documentation" Version="3.0.0" />
<PackageReference Include="Franz.Common.Http.Documentation" />
paket add Franz.Common.Http.Documentation --version 3.0.0
#r "nuget: Franz.Common.Http.Documentation, 3.0.0"
#:package Franz.Common.Http.Documentation@3.0.0
#addin nuget:?package=Franz.Common.Http.Documentation&version=3.0.0
#tool nuget:?package=Franz.Common.Http.Documentation&version=3.0.0
Franz.Common.Http.Documentation
ASP.NET Core API-versioning and native OpenAPI/Scalar endpoint registration.
Overview
ASP.NET Core API-versioning and native OpenAPI/Scalar endpoint registration.
Installation
dotnet add package Franz.Common.Http.Documentation
Service registration
The fluent builder is defined in Franz.Common.Http.Documentation.Extensions.
using Franz.Common.Http.Documentation.Extensions;
builder.Services
.AddFranzDocumentation()
.ConfigureApiVersioning()
.ConfigureOpenApi();
Call ConfigureApiVersioning() before ConfigureOpenApi(). The versioning setup registers controllers with the route prefix api/v{version:apiVersion}, sets the default API version to 1.0, assumes the default when the request omits a version, reports supported versions, and combines URL-segment, x-api-version header, and x-api-version media-type readers.
The current ConfigureOpenApi() implementation registers the native OpenAPI document named v1. It sets the document title from the entry assembly and the document version to 1.0. Do not assume that it currently discovers and registers one document for every API version: the implementation shown registers only v1.
Endpoint mapping
Call UseDocumentation() from the namespace Franz.Common.Http.Bootstrap.Extensions after the application is built and routing is configured.
using Franz.Common.Http.Bootstrap.Extensions;
app.UseDocumentation();
The extension maps the native OpenAPI endpoint at /openapi/{documentName}.json and Scalar's API reference. The current Scalar configuration exposes the v1 document using /openapi/v1.json.
Restrict documentation endpoints according to the deployment's exposure policy. The extension itself does not enforce a Development-only environment condition.
Route conventions
The versioning registration adds the general route prefix through MVC options. Controllers still need API-version metadata for the versioning explorer to group them correctly.
[ApiController]
[ApiVersion("1.0")]
[Route("api/v{version:apiVersion}/orders")]
public sealed class OrdersController : ControllerBase
{
}
Avoid applying a second route-prefix convention manually unless the application intentionally replaces the package's default.
Current implementation boundaries
The project uses ASP.NET Core native OpenAPI and Scalar rather than the legacy Swashbuckle integration described in older package history. The current source still contains historical filenames such as ConfigureSwaggerOptions.cs and SwaggerGenOptionsExtensions.cs; filenames are not a reliable statement of the public API. Verify the active extension signatures in the source before using historical changelog names.
The current document registration is fixed to v1; multi-version document discovery and schema-transformer behavior should not be assumed from earlier README text.
License
MIT. See LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- Asp.Versioning.Mvc.ApiExplorer (>= 10.0.0)
- Franz.Common.Business (>= 3.0.0)
- Franz.Common.Reflection (>= 3.0.0)
- Microsoft.AspNetCore.OpenApi (>= 10.0.14)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.14)
- Scalar.AspNetCore (>= 2.16.16)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Franz.Common.Http.Documentation:
| Package | Downloads |
|---|---|
|
Franz.Common.Http.Bootstrap
Shared utility library for the Franz Framework. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 102 | 11/10/2026 |
| 2.3.4 | 349 | 11/1/2026 |
| 2.3.3 | 318 | 10/28/2026 |
| 2.3.2 | 115 | 10/27/2026 |
| 2.3.1 | 174 | 10/26/2026 |
| 2.3.0 | 248 | 7/21/2026 |
| 2.2.19 | 140 | 7/19/2026 |
| 2.2.18 | 145 | 7/19/2026 |
| 2.2.17 | 135 | 7/12/2026 |
| 2.2.16 | 160 | 7/2/2026 |
| 2.2.15 | 144 | 6/29/2026 |
| 2.2.14 | 144 | 6/29/2026 |
| 2.2.13 | 145 | 6/29/2026 |
| 2.2.12 | 136 | 6/28/2026 |
| 2.2.11 | 133 | 6/28/2026 |
| 2.2.10 | 147 | 6/28/2026 |
| 2.2.9 | 142 | 6/28/2026 |
| 2.2.8 | 135 | 6/28/2026 |
| 2.2.7 | 136 | 6/7/2026 |
| 2.2.6 | 148 | 6/6/2026 |