![]() |
VOOZH | about |
dotnet add package Codebelt.Extensions.Carter --version 1.0.4
NuGet\Install-Package Codebelt.Extensions.Carter -Version 1.0.4
<PackageReference Include="Codebelt.Extensions.Carter" Version="1.0.4" />
<PackageVersion Include="Codebelt.Extensions.Carter" Version="1.0.4" />Directory.Packages.props
<PackageReference Include="Codebelt.Extensions.Carter" />Project file
paket add Codebelt.Extensions.Carter --version 1.0.4
#r "nuget: Codebelt.Extensions.Carter, 1.0.4"
#:package Codebelt.Extensions.Carter@1.0.4
#addin nuget:?package=Codebelt.Extensions.Carter&version=1.0.4Install as a Cake Addin
#tool nuget:?package=Codebelt.Extensions.Carter&version=1.0.4Install as a Cake Tool
A focused extension layer for Carter with configurable response negotiation primitives and endpoint metadata helpers for ASP.NET Core minimal APIs.
Codebelt.Extensions.Carter complements Carter by adding reusable negotiation infrastructure and endpoint convention extensions.
Use this package when you want to:
For concrete JSON, YAML, or XML negotiators, use one of the companion packages listed below.
using Carter;
using Codebelt.Extensions.Carter;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddCarter();
var app = builder.Build();
app.MapGet("/status", () => new StatusResponse("ok"))
.Produces<StatusResponse>(StatusCodes.Status200OK, "application/json")
.ProducesProblem(StatusCodes.Status503ServiceUnavailable);
app.MapCarter();
app.Run();
public sealed record StatusResponse(string State);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 4 NuGet packages that depend on Codebelt.Extensions.Carter:
| Package | Downloads |
|---|---|
|
Codebelt.Extensions.Carter.AspNetCore.Xml
The Codebelt.Extensions.Carter.AspNetCore.Xml namespace contains types that complements the Codebelt.Extensions.Carter namespace by providing an XML response negotiator for Carter using System.Xml in the context of ASP.NET Core. |
|
|
Codebelt.Extensions.Carter.AspNetCore.Text.Yaml
The Codebelt.Extensions.Carter.AspNetCore.Text.Yaml namespace contains types that complements the Codebelt.Extensions.Carter namespace by providing a YAML response negotiator for Carter using YamlDotNet in the context of ASP.NET Core. |
|
|
Codebelt.Extensions.Carter.AspNetCore.Text.Json
The Codebelt.Extensions.Carter.AspNetCore.Text.Json namespace contains types that complements the Codebelt.Extensions.Carter namespace by providing an opinionated JSON response negotiator for Carter using System.Text.Json in the context of ASP.NET Core. This is a Codebelt ecosystem alternative to Carter's built-in JSON negotiator. |
|
|
Codebelt.Extensions.Carter.AspNetCore.Newtonsoft.Json
The Codebelt.Extensions.Carter.AspNetCore.Newtonsoft.Json namespace contains types that complements the Codebelt.Extensions.Carter namespace by providing an opinionated JSON response negotiator for Carter using Newtonsoft.Json in the context of ASP.NET Core. This is a Codebelt ecosystem alternative to Carter's built-in Newtonsoft.Json negotiator. |
This package is not used by any popular GitHub repositories.
Version: 1.0.4
Availability: .NET 10
# ALM
- CHANGED Dependencies have been upgraded to the latest compatible versions for all supported target frameworks (TFMs)
Version: 1.0.3
Availability: .NET 10
# ALM
- CHANGED Dependencies have been upgraded to the latest compatible versions for all supported target frameworks (TFMs)
Version: 1.0.2
Availability: .NET 10
# ALM
- CHANGED Dependencies have been upgraded to the latest compatible versions for all supported target frameworks (TFMs)
Version: 1.0.1
Availability: .NET 10
# ALM
- CHANGED Dependencies have been upgraded to the latest compatible versions for all supported target frameworks (TFMs)
Version: 1.0.0
Availability: .NET 10
# New Features
- ADDED ConfigurableResponseNegotiator<TOptions> class in the Codebelt.Extensions.Carter.Response namespace that provides an abstract, configurable base class for Carter response negotiators that serialize models using a StreamFormatter<TOptions> implementation
- ADDED EndpointConventionBuilderExtensions class in the Codebelt.Extensions.Carter namespace that consist of extension methods for the IEndpointConventionBuilder interface: Produces<TResponse> and Produces