Sorting

All bulk fetched made via "list" API methods have built in support for sorting.

These list API methods share a common structure, taking 2 paramters used for sorting: sort_by (default varies by resource) and sort_descending (boolean, defaults to false).

The "sort_by" parameter can receive any field name as value from the requested resource returned. Here is an example on how to receive the list of properties in descending createdAt order:

url --request GET \
    --url https://app.doorloop.com/api/properties?sort_by=createdAt&sort_descending=true \
    --header 'Accept: application/json' \
    --header 'Authorization: bearer your_api_token_goes_here'