Interface ISortParser
- Namespace
- JsonApiDotNetCore.Queries.Parsing
- Assembly
- JsonApiDotNetCore.dll
Parses the JSON:API 'sort' query string parameter value.
public interface ISortParser
Methods
Parse(string, ResourceType)
Parses the specified source into a SortExpression. Throws a QueryParseException if the input is invalid.
SortExpression Parse(string source, ResourceType resourceType)
Parameters
source
stringThe source text to read from.
resourceType
ResourceTypeThe resource type used to lookup JSON:API fields that are referenced in
source
.