cpan-testers / cpantesters-api

An API in to data held by CPAN Testers: Test reports and CPAN uploads
Other
4 stars 4 forks source link

Add sort_by query parameter to release API #15

Closed preaction closed 6 years ago

preaction commented 6 years ago

In order to get the release data in a more useful form, we should add a sort_by and dir query parameters to the release APIs:

The sort_by query parameter can have the following values:

The dir query parameter can have the following values:

This will then allow the data dashboard to order the releases better (cpan-testers/cpantesters-web#11).

1nickt commented 6 years ago

Suggest dir is ambiguous and would be better as sort_order.

preaction commented 6 years ago

I ended up adding a /v3/release/dist/:dist/:version API that solves this in a different way. Right now, sorting this data isn't a priority, so I'm closing this.