Sorting and filtering of products
Большинство методов работы с продуктами поддерживаю пагинацию, сортировку и фильтрацию контента. Их можно узнать по следующим параметрам:
Пагинация
offset
: задает смещениеlimit
: задает ограничение выдаваемых элементов
Сортировка
sortKey
: поле, по которому будет сортироваться контент. К примеру:price
,rate
и тд.sortOrder
: направление сортировкиASC
,DESC
Фильтрация
filter
: построитель фильтров. По умолчанию фильры не применяются
Kotlin Multiplatform Sample
The presented code demonstrates all the functionality listed. The result of execution will be thirty products sorted in ascending order of product prices, with a rating greater than 5.
Swift Sample
The presented code demonstrates all the functionality listed. The result of execution will be thirty products sorted in ascending order of product prices, with a rating greater than 5.