Class QueryStringParameterScopeParser
- Namespace
- JsonApiDotNetCore.Queries.Parsing
- Assembly
- JsonApiDotNetCore.dll
Parses the JSON:API 'sort' and 'filter' query string parameter names, which contain a resource field chain that indicates the scope its query string parameter value applies to.
[PublicAPI]
public class QueryStringParameterScopeParser : QueryExpressionParser, IQueryStringParameterScopeParser
- Inheritance
-
QueryStringParameterScopeParser
- Implements
- Inherited Members
Methods
Parse(string, ResourceType, FieldChainPattern, FieldChainPatternMatchOptions)
Parses the specified source into a QueryStringParameterScopeExpression. Throws a QueryParseException if the input is invalid.
public QueryStringParameterScopeExpression Parse(string source, ResourceType resourceType, FieldChainPattern pattern, FieldChainPatternMatchOptions options)
Parameters
source
stringThe source text to read from.
resourceType
ResourceTypeThe resource type used to lookup JSON:API fields that are referenced in
source
.pattern
FieldChainPatternThe pattern that the field chain in
source
must match.options
FieldChainPatternMatchOptionsThe match options for
pattern
.
Returns
ParseQueryStringParameterScope(ResourceType, FieldChainPattern, FieldChainPatternMatchOptions)
protected virtual QueryStringParameterScopeExpression ParseQueryStringParameterScope(ResourceType resourceType, FieldChainPattern pattern, FieldChainPatternMatchOptions options)
Parameters
resourceType
ResourceTypepattern
FieldChainPatternoptions
FieldChainPatternMatchOptions