Skip to content

Sort by

Capy Serializers supports sort by, you can set sort_by attribute in the serializer to sort the results by a field. Default sort by is pk, you can override this value using sort_by query param.

Example

GET /api/v1/users?sort_by=name