Versions
Get artifact version references as a graph
Retrieves a graph representation of all references for a single version of an artifact. The graph includes nodes representing artifacts, edges representing references between them, and metadata about the graph structure including cycle detection.
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}/references/graph
Response
A graph representation of all artifact references.
Example response
{
"root": {
"id": "root",
"groupId": "mygroup",
"artifactId": "my-artifact",
"version": "1.0",
"isRoot": true
},
"nodes": [
{
"id": "root",
"groupId": "mygroup",
"artifactId": "my-artifact",
"version": "1.0",
"isRoot": true
},
{
"id": "node-1",
"groupId": "mygroup",
"artifactId": "referenced-artifact",
"version": "2.0",
"isRoot": false
}
],
"edges": [
{
"sourceNodeId": "root",
"targetNodeId": "node-1",
"name": "common.proto"
}
],
"metadata": {
"totalNodes": 2,
"totalEdges": 1,
"maxDepth": 1,
"hasCycles": false
}
}