Franz.Common.Http.Documentation 1.2.64

dotnet add package Franz.Common.Http.Documentation --version 1.2.64                
NuGet\Install-Package Franz.Common.Http.Documentation -Version 1.2.64                
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="Franz.Common.Http.Documentation" Version="1.2.64" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Franz.Common.Http.Documentation --version 1.2.64                
#r "nuget: Franz.Common.Http.Documentation, 1.2.64"                
#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.
// Install Franz.Common.Http.Documentation as a Cake Addin
#addin nuget:?package=Franz.Common.Http.Documentation&version=1.2.64

// Install Franz.Common.Http.Documentation as a Cake Tool
#tool nuget:?package=Franz.Common.Http.Documentation&version=1.2.64                

Franz.Common.Http.Documentation

A robust library within the Franz Framework designed to simplify and enhance API documentation for ASP.NET Core applications. This package provides seamless integration with Swagger, API versioning, and route conventions, enabling clear, versioned, and comprehensive API documentation.


Features

  • Swagger Integration:
    • Utilities for configuring and customizing Swagger UI and generation options.
  • API Versioning:
    • Built-in support for API versioning through Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer.
  • Route Customization:
    • RoutePrefixConvention for consistent routing across controllers.
  • Extensions:
    • Tools to configure Swagger, MVC options, and application middleware pipelines.
  • Dependency Injection:
    • ServiceCollectionExtensions for easy integration of Swagger and API documentation services.

Version Information

  • Current Version: 1.2.64
  • Part of the private Franz Framework ecosystem.

Dependencies

This package relies on:

  • Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer (5.1.0): Enables API versioning and metadata discovery.
  • Swashbuckle.AspNetCore.SwaggerGen (6.5.0): For Swagger document generation.
  • Swashbuckle.AspNetCore.SwaggerUI (6.5.0): For rendering Swagger UI.
  • Microsoft.Extensions.DependencyInjection.Abstractions (8.0.0): Provides DI abstractions.
  • Franz.Common.Business: Provides core business utilities.
  • Franz.Common.Reflection: Reflection utilities for dynamic configuration and customization.

Installation

From Private Azure Feed

Since this package is hosted privately, configure your NuGet client:

dotnet nuget add source "https://your-private-feed-url" \
  --name "AzurePrivateFeed" \
  --username "YourAzureUsername" \
  --password "YourAzurePassword" \
  --store-password-in-clear-text

Install the package:

dotnet add package Franz.Common.Http.Documentation --Version 1.2.64

Usage

1. Configure Swagger

Use the provided ConfigureSwaggerOptions class to customize Swagger settings:

using Franz.Common.Http.Documentation.Configuration;

services.AddSwaggerGen(options =>
{
    ConfigureSwaggerOptions.Configure(options, apiVersionDescriptionProvider);
});

2. API Versioning

Enable API versioning with minimal effort:

services.AddApiVersioning(options =>
{
    options.AssumeDefaultVersionWhenUnspecified = true;
    options.ReportApiVersions = true;
    options.DefaultApiVersion = new ApiVersion(1, 0);
});
services.AddVersionedApiExplorer(options =>
{
    options.GroupNameFormat = "'v'VVV";
});

3. Swagger and Swagger UI Integration

Use ServiceCollectionExtensions and ApplicationBuilderExtensions to integrate Swagger:

using Franz.Common.Http.Documentation.Extensions;

services.AddSwaggerDocumentation();

app.UseSwagger();
app.UseSwaggerUI(options =>
{
    options.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
});

4. Route Prefix Customization

Customize API routes with RoutePrefixConvention:

using Franz.Common.Http.Documentation.Routing;

services.AddMvc(options =>
{
    options.Conventions.Add(new RoutePrefixConvention("api"));
});

Integration with Franz Framework

The Franz.Common.Http.Documentation package integrates seamlessly with:

  • Franz.Common.Business: Provides business logic utilities.
  • Franz.Common.Reflection: Enhances reflection capabilities for dynamic configurations.

Ensure these dependencies are installed to fully leverage the library's capabilities.


Contributing

This package is part of a private framework. Contributions are limited to the internal development team. If you have access, follow these steps:

  1. Clone the repository. @ https://github.com/bestacio89/Franz.Common/
  2. Create a feature branch.
  3. Submit a pull request for review.

License

This library is licensed under the MIT License. See the LICENSE file for more details.


Changelog

Version 1.2.64

  • Upgrade version to .net 9
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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.2.64 4 1/29/2025
1.2.63 48 1/27/2025
1.2.62 51 1/8/2025