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
IApplicationBuilderThe 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());