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) -> URLQueryItemParameters
propertyspecifies the property that should be filtered
operationthe operation that is uses to evaluate the property
valuethe value that is used to check if the property fulfills the criteria
Return Value
an
URLQueryItemthat 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) -> URLQueryItemParameters
operationspecifies the sort direction
propertyspecifies the sorted property
Return Value
an
URLQueryItemthat represents a single sorting strategy from the custom configuration
View on GitHub
Functions Reference