ResponsesServerEndpointRouteBuilderExtensions.MapResponsesServer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.