Skip to content

Add Filtering, Sorting and Pagination to the Victim API  #103

Description

@ssmusoke

This enhancement simplifies the work for the UI

  1. 50 records will be returned per page
  2. Sorting will be by field, sent as a request parameter for example sort=name which sorts in ascending order, adding a '-' sorts in descending order e.g., sort=-name
  3. Filtering is done by an array /users?filter[status]=Remanded&filter[holding_location_id]=1
  4. To change the number of records in the page use the per_page query parameter e.g., per_page=25

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions