Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ssmusoke opened this issue Jul 25, 2024 · 4 comments
Open

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

ssmusoke opened this issue Jul 25, 2024 · 4 comments

Comments

@ssmusoke
Copy link

ssmusoke commented Jul 25, 2024

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
@davidofug
Copy link
Contributor

Do we have the API repo somewhere?

It could help to contribute to the documentation in real time.

@ssmusoke
Copy link
Author

https://github.com/Uganda-Open-Data/missingpersons

@skapeyi
Copy link
Collaborator

skapeyi commented Jul 26, 2024

@davidofug are you able to look into adding this https://github.com/DarkaOnLine/L5-Swagger. @ssmusoke thoughts?

@ssmusoke
Copy link
Author

That would be a welcome addition, in the mean time here is a quick and dirty documentation of the API - Uganda-Open-Data/missingpersons#16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants