Valobtify.AspNetCore.WebApi
2.1.2
See the version list below for details.
dotnet add package Valobtify.AspNetCore.WebApi --version 2.1.2
NuGet\Install-Package Valobtify.AspNetCore.WebApi -Version 2.1.2
<PackageReference Include="Valobtify.AspNetCore.WebApi" Version="2.1.2" />
<PackageVersion Include="Valobtify.AspNetCore.WebApi" Version="2.1.2" />
<PackageReference Include="Valobtify.AspNetCore.WebApi" />
paket add Valobtify.AspNetCore.WebApi --version 2.1.2
#r "nuget: Valobtify.AspNetCore.WebApi, 2.1.2"
#:package Valobtify.AspNetCore.WebApi@2.1.2
#addin nuget:?package=Valobtify.AspNetCore.WebApi&version=2.1.2
#tool nuget:?package=Valobtify.AspNetCore.WebApi&version=2.1.2
Table of Contents
Overview
Valobtify.AspNetCore.WebApi is an extension of the Valobtify library that simplifies the integration of value objects into ASP.NET Core Web APIs. It provides built-in support for model mapping and Swagger documentation, making it easier to work with value objects in your API projects.
Installation
To install the Valobtify.AspNetCore.WebApi package, run the following command in your terminal:
dotnet add package Valobtify.AspNetCore.WebApi
Ensure you have the required .NET SDK installed.
Model Mapping
To enable model mapping in your ASP.NET Core Web API, add the following configuration to your Program.cs file:
builder.Services.AddValobtifyConverters(Assembly.GetExecutingAssembly());
This ensures that Valobtify correctly maps your value objects within your application.
Swagger Support
To integrate Valobtify with Swagger and automatically generate schema filters for value objects, add this configuration to your Program.cs file:
builder.Services.AddSwaggerGen(c => c.AddValobtifySchemaFilters());
| 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
- Resulver (>= 1.2.5)
- Swashbuckle.AspNetCore.SwaggerGen (>= 6.9.0)
- Valobtify (>= 2.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.