Nexus 3 Beta Rest API - md5/sha1 of Assets

478 views
Skip to first unread message

Danny Kulchinsky

unread,
Oct 20, 2017, 5:35:29 PM10/20/17
to Nexus Users
Hello!

I'm testing the beta REST API (really nice!), I need it to retrive information about assets in raw repositories, specifically I'm interested in the md5 & sha1 hashes of the asset, however it seems that the response doesn't contain this informaiton.

Is there any way to get it with the API?

Here's the API call I use and the response:



{
  "downloadUrl" : "https://<our-nexus>/repository/<repo-name>/path/to/<artifact>.tar.gz",
  "path" : "path/to/<artifact>.tar.gz",
  "id" : "Y2hhdGFydGlmYWN0cy1wcml2YXRlOmY4OThiMzkwM2NiOTljNTliOTAzMzlkMWRkZWNmNjYw",
  "repository" : "<repo-name>",
  "format" : "raw"
}

Also, is it possible to retrieve the above using the path key instead of id?

Danny

Kelly Robinson

unread,
Oct 20, 2017, 6:24:29 PM10/20/17
to Danny Kulchinsky, Nexus Users
Hi Danny,

We're actually discussing the scope of what we want to make available in the REST API responses right now. Checksum values will definitely be included, as well as potentially more format specific data. I can't promise a specific timeline, but this is likely to be available within the next couple of releases. This ticket is tracking our in-progress planning: https://issues.sonatype.org/browse/NEXUS-14631

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/e2a0a349-289d-4b3a-8b0c-1c9ca945be62%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.

Danny Kulchinsky

unread,
Oct 20, 2017, 9:33:51 PM10/20/17
to Kelly Robinson, Nexus Users
Thank you!

Looking forward to it.


Danny
Reply all
Reply to author
Forward
0 new messages