v51

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-08-01131107332.8 KB
Versions

Get artifact version

Retrieves a single version of the artifact content. Both the artifactId and the unique version number must be provided. The Content-Type of the response depends on the artifact type. In most cases, this is application/json, but for some types it may be different (for example, PROTOBUF).

This operation can fail for the following reasons:

  • No artifact with this artifactId exists (HTTP error 404)
  • No version with this version exists (HTTP error 404)
  • A server error occurred (HTTP error 500)
get/groups/{groupId}/artifacts/{artifactId}/versions/{versionExpression}/content

Query parameters

references'PRESERVE' | 'DEREFERENCE' | 'REWRITE'

How to handle references when retrieving content. References can either be left unchanged (PRESERVE), re-written so they are valid in the context of the registry (REWRITE), or fully dereferenced such that all externally referenced content is internalized (DEREFERENCE).

Allows the user to specify how references in the content should be treated.

canonicalboolean

Parameter that can be set to true to indicate that the server should return the canonicalized form of the artifact content. Canonicalization is unique to each artifact type, but typically involves removing any extra whitespace and formatting the content in a consistent manner. When canonical=true, the server resolves artifact references internally for canonicalization regardless of the references query parameter value. The references parameter still controls how references appear in the returned content (e.g. preserved, dereferenced, or rewritten).

Response

The content of one version of one artifact.