{% extends "rest_framework/api_basics.html" %} {% block description %}
Most object lists can be sorted by one or more fields. Sorting is done according to order of the fields from left to right. The syntax for sorting is as follows:
<url>?sort=<field name>[,<field name>]*
The default sorting order is ascending. To specify descending order, add a minus sign (-) before the field name.
For example:
/api/rest/systems/1007/annotations/?sort=marker_style,-timestamp
The specific fields that can be used depend on the objects in question. Please refer to the documentation of each request for the list of valid fields.
Next: CSV Responses » {% endblock %}