title: Using the Nexus3 API how do I get a list of artifacts in a repository
body: <p>We are migrating from Nexus Repository Manager 2.1.4 to Nexus 3.1.0-04. With version 2 we have been able to use the API to get a list of artifacts by repository, however we are struggling to find a way to do this with the Nexus 3 API.</p>
  
  <p>Having read <a href="https://books.sonatype.com/nexus-book/reference3/scripting.html" rel="noreferrer">https://books.sonatype.com/nexus-book/reference3/scripting.html</a> chapter 16 we have been able to get artifact information for a specific blob using a groovy script like:</p>
  
  <pre><code>import org.sonatype.nexus.blobstore.api.BlobId
  
  def properties = blobStore.blobStoreManager.get("default").get(new BlobId("7f6379d32f8dd78f98b5b181166703b6")).getProperties()
  return [headers: properties.headers, metrics: properties.metrics]
  </code></pre>
  
  <p>However we can't find a way to iterate over the contents of a blob store. We can get a blob store object:</p>
  
  <pre><code>blobStore.blobStoreManager.get("default")
  </code></pre>
  
  <p>however the API does not appear to give us a way to get a list of all blobs within that store. We need to get a list of the blobIDs within a blob store.</p>
  
  <p>Is there a way to do this via the Nexus 3 API?</p>