dart-archive / pub-dartlang

DEPRECATED - old pub.dartlang.org site in Python
https://github.com/dart-lang/pub-dartlang-dart
Other
43 stars 18 forks source link

pub api api/packages/foo/versions/ should return latest version. #342

Closed DartBot closed 9 years ago

DartBot commented 9 years ago

Issue by amouravski Originally opened as dart-lang/sdk#15857


Currently api/packages/foo/versions/ is an error, but should probably return latest version.

DartBot commented 9 years ago

Comment by munificent


Latest version according to which ordering? Include dev versions?

Note that this may be difficult to implement because package versions are currently sorted asynchronously on the server.

DartBot commented 9 years ago

Comment by munificent


Removed Area-Pub label. Added Area-PubSite label.

DartBot commented 9 years ago

Comment by nex3


I would expect it to return a list of versions of "foo" rather than a single version. The convention is that if "foos/bar" returns a specific instance of "foo" identified by "bar", "foos" on its own returns a list of all foos.

Right now, "api/packages/foo" includes the list of versions, which is why I didn't have "api/packages/foo/versions" return anything, since it would be redundant.

DartBot commented 9 years ago

Comment by nicolasgarnier


This issue has been moved to Github as part of a migration. Please use the Issue on Github going forward: https://github.com/dart-lang/pub-dartlang/issues


Added MovedToGithub label.