Class DisableRoutingConventionAttribute
- Namespace
- JsonApiDotNetCore.Controllers.Annotations
- Assembly
- JsonApiDotNetCore.dll
Used on an ASP.NET controller class to indicate that a custom route is used instead of the built-in routing convention.
[PublicAPI]
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct)]
public sealed class DisableRoutingConventionAttribute : Attribute
- Inheritance
-
DisableRoutingConventionAttribute
- Inherited Members
Examples
[DisableRoutingConvention, Route("some/custom/route/to/customers")] public class CustomersController : JsonApiController<Customer> { }