Search for versions by content
Returns a paginated list of all versions that match the posted content.
This operation can fail for the following reasons:
- Provided content (request body) was empty (HTTP error 400)
- A server error occurred (HTTP error 500)
Query parameters
Parameter that can be set to true to indicate that the server should "canonicalize" the content when searching for matching artifacts. Canonicalization is unique to each artifact type, but typically involves removing any extra whitespace and formatting the content in a consistent manner. Must be used along with the artifactType query parameter.
Indicates the type of artifact represented by the content being used for the search. This is only needed when using the canonical query parameter, so that the server knows how to canonicalize the content prior to searching for matching versions.
The number of versions to skip before starting to collect the result set. Defaults to 0.
The number of versions to return. Defaults to 20.
Sort order, ascending (asc) or descending (desc).
The field to sort by. Can be one of:
- name
- createdOn
An ID of a single artifact group.
Filter by group Id.
The ID of a single artifact.
Filter by artifact Id.
Indicates whether to skip the total count query. When true, the total count is not computed and count will be 0 in the response. This can improve performance for large datasets.
Response
On a successful response, returns a result set of versions - one for each version in the registry that matches the criteria.
Example response
{
"versions": [
{
"groupId": "DemoGroup",
"artifactId": "demo-artifact-id",
"name": "Artifact Version Name",
"description": "Description of the artifact version",
"artifactType": "AVRO",
"state": "ENABLED",
"createdOn": "2018-02-10T09:30Z",
"owner": "some text",
"globalId": 37,
"version": "1.0.7",
"contentId": 62
}
]
}