Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get complete info of a package with REST api #756

Open
ghost opened this issue May 27, 2020 · 2 comments
Open

Get complete info of a package with REST api #756

ghost opened this issue May 27, 2020 · 2 comments
Assignees

Comments

@ghost
Copy link

ghost commented May 27, 2020

The web api for querying info of a package doesn't return fields like dependencies, license, scm url etc. How do I fetch this info about a pacakge?

@ghost
Copy link
Author

ghost commented May 27, 2020

Also, how do the field latest_release and latest_version differ?

@tobias
Copy link
Member

tobias commented May 27, 2020

Those fields are missing from the API only because they have never been added I suspect. A PR adding them would be welcome. Alternatively, you can pull down the pom file for an artifact and parse that to get that information.

latest_release will be the version number of the most recent release, including SNAPSHOT releases (so could be something like 0.1.0-SNAPSHOT).

latest_version will be the version number of the most recent non-SNAPSHOT release (so would be something like 0.1.0).

If the most recent release is not a SNAPSHOT, latest_release and latest_version will be the same non-SNAPSHOT value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants