uWaterloo / OpenData

Help and Support for University of Waterloo Open Data Initiative
https://api.uwaterloo.ca
90 stars 12 forks source link

Limits and sorting on WCMS endpoints #213

Closed ebremner17 closed 3 years ago

ebremner17 commented 3 years ago

Can we please get limits and sorting on WCMS endpoints for news, events and blogs for WCMS, so something like v3/Wcms/{siteId}/news. A site like engineering returns 1216 results and takes a long time to load. It would also be nice to be able to sort on postedDate so that you are getting the latest news first.

sbobkin commented 3 years ago

@ebremner17 there is now a query parameter option to limit the result set, and an option to return newest item first. By default, but not guaranteed, the results will be sorted now also.