api.tipmoto.com » API documentation » Reference » Sorting

Sorting records

Records can of course be sorted. The list of values by which records can be sorted depends on the specific agenda. The documentation of the given agenda states whether an element can be used for sorting.

Sorting is controlled by the URL parameter order. The parameter can contain several comma-separated values, and the sort direction can also be used (values ASC and DESC).
If sorting by an attribute is allowed, the attribute is written after the at sign (@).

Examples:

https://api.tipmoto.com/c/12345/moto.xml?order=nazev
https://api.tipmoto.com/c/12345/moto.xml?order=manufacturer ASC,cena DESC
https://api.tipmoto.com/c/12345/moto.xml?order=manufacturer@id

Note: Take care to encode the parameter value correctly in the URL.

TipMoto.com Contact us