Table of Contents

Class JsonApiMiddleware

Namespace
JsonApiDotNetCore.Middleware
Assembly
JsonApiDotNetCore.dll

Intercepts HTTP requests to populate injected IJsonApiRequest instance for JSON:API requests.

[PublicAPI]
public sealed class JsonApiMiddleware
Inheritance
JsonApiMiddleware
Inherited Members

Constructors

JsonApiMiddleware(RequestDelegate?, IHttpContextAccessor, IControllerResourceMapping, IJsonApiOptions, IJsonApiContentNegotiator, ILogger<JsonApiMiddleware>)

public JsonApiMiddleware(RequestDelegate? next, IHttpContextAccessor httpContextAccessor, IControllerResourceMapping controllerResourceMapping, IJsonApiOptions options, IJsonApiContentNegotiator contentNegotiator, ILogger<JsonApiMiddleware> logger)

Parameters

next RequestDelegate
httpContextAccessor IHttpContextAccessor
controllerResourceMapping IControllerResourceMapping
options IJsonApiOptions
contentNegotiator IJsonApiContentNegotiator
logger ILogger<JsonApiMiddleware>

Methods

InvokeAsync(HttpContext, IJsonApiRequest)

public Task InvokeAsync(HttpContext httpContext, IJsonApiRequest request)

Parameters

httpContext HttpContext
request IJsonApiRequest

Returns

Task