Enum AttrCapabilities
- Namespace
- JsonApiDotNetCore.Resources.Annotations
- Assembly
- JsonApiDotNetCore.Annotations.dll
Indicates what can be performed on an AttrAttribute.
[PublicAPI]
[Flags]
public enum AttrCapabilities
Fields
All = AllowView | AllowCreate | AllowChange | AllowFilter | AllowSortAllowChange = 4Whether or not PATCH requests can update the attribute value. Attempts to update when disabled will return an HTTP 422 response.
AllowCreate = 2Whether or not POST requests can assign the attribute value. Attempts to assign when disabled will return an HTTP 422 response.
AllowFilter = 8Whether or not the attribute can be filtered on. Attempts to use it in the
filterquery string parameter when disabled will return an HTTP 400 response.AllowSort = 16Whether or not the attribute can be sorted on. Attempts to use it in the
sortquery string parameter when disabled will return an HTTP 400 response.AllowView = 1Whether or not the attribute value can be returned in responses. Attempts to explicitly request it via the
fieldsquery string parameter when disabled will return an HTTP 400 response. Otherwise, the attribute is silently omitted.None = 0