ResponsesServerEndpointRouteBuilderExtensions.MapResponsesServer Method

Definition

Maps the Responses API routes to the endpoint routing pipeline.

public static Microsoft.AspNetCore.Routing.RouteGroupBuilder MapResponsesServer(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string? prefix = default);
static member MapResponsesServer : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string -> Microsoft.AspNetCore.Routing.RouteGroupBuilder
<Extension()>
Public Function MapResponsesServer (endpoints As IEndpointRouteBuilder, Optional prefix As String = Nothing) As RouteGroupBuilder

Parameters

endpoints
IEndpointRouteBuilder

The endpoint route builder to map routes on.

prefix
String

Optional route prefix (e.g., "/openai/v1"). Default: empty (routes at /responses).

Returns

A RouteGroupBuilder for further endpoint configuration.

Applies to