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
resourceTypeResourceTypeThe primary resource type of the endpoint.
endpointJsonApiEndpointsThe JSON:API endpoint. Despite JsonApiEndpoints being a FlagsAttribute enum, a single value is always passed here.