Closed preaction closed 6 years ago
Suggest dir
is ambiguous and would be better as sort_order
.
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.
In order to get the release data in a more useful form, we should add a
sort_by
anddir
query parameters to the release APIs:/v3/release
/v3/release/dist/:distname
/v3/release/author/:authorname
The
sort_by
query parameter can have the following values:dist
- Order by the distribution's nameversion
- Order by distribution versionsdist_released
- Order by the distribution's release dateThe
dir
query parameter can have the following values:asc
- Sort the list in ascending orderdesc
- Sort the list in descending orderThis will then allow the data dashboard to order the releases better (cpan-testers/cpantesters-web#11).