Table of Contents

Class ApplicationBuilderExtensions

Namespace
JsonApiDotNetCore.Configuration
Assembly
JsonApiDotNetCore.dll
public static class ApplicationBuilderExtensions
Inheritance
ApplicationBuilderExtensions
Inherited Members

Methods

UseJsonApi(IApplicationBuilder)

Registers the JsonApiDotNetCore middleware.

public static void UseJsonApi(this IApplicationBuilder builder)

Parameters

builder IApplicationBuilder

The IApplicationBuilder to add the middleware to.

Examples

The code below is the minimal that is required for proper activation, which should be added to your Startup.Configure method.

app.UseRouting();
app.UseJsonApi();
app.UseEndpoints(endpoints => endpoints.MapControllers());