Concept
Sorting
It is possible to sort the results based on a given property, or a list of comma-separated properties.
Sorting is by default in ascending order, but can be done in descending by adding a minus (-)
in front of the property.
Eg. see the example below where externalId
is ascending and city
is descending.
HTTP
GET /api/v1/departments?sort=externalId,-city HTTP/1.1
Host: api.relesysapp.net
Accept-type: application/json
Authorization: Bearer [Your token]
More info
Sorting can be combined with pagination and filtering.