Skip to content
Documentation

HAKOM.Versioning.Http.Net.Api.Extensions Namespace

Contains extension methods for registering HTTP versioning services with the dependency injection container and the MVC builder.

This namespace provides two extension classes:

  • ContainerExtensions — Registers versioned service information, version string serializers, and OpenAPI schema filters with the HAKOM IContainer.
  • MvcBuilderExtensions — Adds the version information endpoint and namespace-based media-type version selection to the ASP.NET Core MVC pipeline.

Setup requires calls to both extension classes:

// Container registrations:
container
.UseVersionedServiceInformation()
.UseVersionStringSerializers()
.UseVersionedServiceInformationSerializers()
.UseVersionedOpenApiSchemas();
// MVC builder registrations:
mvcBuilder
.AddVersionedServiceInformationEndpoints()
.SelectEndpointsByNamespaceAndMediaTypeVersion(HttpStatusCode.NotFound);
Classes
ContainerExtensions Provides methods for registering services with an instance of IContainer for working with versions in HTTP APIs.
MvcBuilderExtensions Defines extension methods for adding version-related capabilities and endpoints to an MVC framework based HTTP API.
© 2026 Volue.Version v0.6.38017 November 2026