Table of Contents

Interface IJsonApiEndpointFilter

Namespace
JsonApiDotNetCore.Middleware
Assembly
JsonApiDotNetCore.dll

Enables to remove JSON:API controller action methods at startup. For atomic:operation requests, see IAtomicOperationFilter.

[PublicAPI]
public interface IJsonApiEndpointFilter

Methods

IsEnabled(ResourceType, JsonApiEndpoints)

Determines whether to remove the associated controller action method.

bool IsEnabled(ResourceType resourceType, JsonApiEndpoints endpoint)

Parameters

resourceType ResourceType

The primary resource type of the endpoint.

endpoint JsonApiEndpoints

The JSON:API endpoint. Despite JsonApiEndpoints being a FlagsAttribute enum, a single value is always passed here.

Returns

bool