Closed josh-chamberlain closed 1 month ago
@josh-chamberlain This has been addressed in Data Sources. The way I've designed things, it wouldn't take too much for me to add the sorting to Agencies
and Data Requests
(they both already have pagination). Would you like me to do that?
@maxachis Yes, I suppose that would be best for symmetry and consistency, wouldn't it! Thanks.
Context
Makes #75 easier. In general, with a paginated endpoint, it's helpful to allow users to
sort_by
Requirements
agencies
)sort_by
param which allows a user to specify a propertycreated_at
; allowinglast_updated
would be good toosort_order
param which allowsdesc
(default) orasc
Tests
Docs
Open questions