Functions
The following functions are available globally.
-
This is the default filter server strategy oriented at the LHS Brackets structure from https://www.moesif.com/blog/technical/api-design/REST-API-Design-Filtering-Sorting-and-Pagination/#lhs-brackets .
Declaration
Swift
public func defaultFilterServerStrategy(_ property: String, _ operation: String, _ value: String) -> URLQueryItem
Parameters
property
specifies the property that should be filtered
operation
the operation that is uses to evaluate the property
value
the value that is used to check if the property fulfills the criteria
Return Value
an
URLQueryItem
that represents a single filter from the default configuration
-
represents a default sorting strategy from https://www.moesif.com/blog/technical/api-design/REST-API-Design-Filtering-Sorting-and-Pagination/#sorting .
Declaration
Swift
public func defaultSortServerStrategy(_ operation: String, _ property: String) -> URLQueryItem
Parameters
operation
specifies the sort direction
property
specifies the sorted property
Return Value
an
URLQueryItem
that represents a single sorting strategy from the custom configuration