Table of Contents

Class QueryStringParameterScopeParser

Namespace
JsonApiDotNetCore.Queries.Parsing
Assembly
JsonApiDotNetCore.dll

Parser for the JSON:API 'sort' and 'filter' query string parameter names, which indicate the scope their query string parameter value applies to. The value consists of an optional relationship chain ending in a to-many relationship, surrounded by brackets.

[PublicAPI]
public class QueryStringParameterScopeParser : QueryExpressionParser, IQueryStringParameterScopeParser
Inheritance
QueryStringParameterScopeParser
Implements
Inherited Members

Methods

Parse(string, ResourceType)

Parses the specified source into a QueryStringParameterScopeExpression. Throws a QueryParseException if the input is invalid.

public QueryStringParameterScopeExpression Parse(string source, ResourceType resourceType)

Parameters

source string

The source text to read from.

resourceType ResourceType

The resource type used to lookup JSON:API fields that are referenced in source.

Returns

QueryStringParameterScopeExpression

ParseQueryStringParameterScope(ResourceType)

protected virtual QueryStringParameterScopeExpression ParseQueryStringParameterScope(ResourceType resourceType)

Parameters

resourceType ResourceType

Returns

QueryStringParameterScopeExpression