Skip to content

Sorting

SortOrder

The order to sort by.

ValueDescription
ascAscending order
descDescending order

SortQueryParams

Query parameters for sorting. These parameters should be used on GET routes that support sorting.

ParameterTypeDescription
sortByunknownThe field to sort by, should be an enum for individual routes
customSortBystringAn implementation-defined sort key
sortOrderSortOrderThe order to sort by

SortBodyParams

Body parameters for sorting. These parameters should be used on POST and PUT routes that support sorting.

ParameterTypeDescription
sortByunknownThe field to sort by, should be an enum for individual routes
customSortBystringAn implementation-defined sort key
sortOrderSortOrderThe order to sort by

SortInfo

Information about the sort order of the items returned. This model should be used to represent the sorting details in responses.

ParameterTypeDescription
sortBystringThe field to sort by
customSortBystringAn implementation-defined sort key
sortOrderSortOrderThe order to sort by