Description: Lists all VCS branches in a specific repository or subgroup repository.
Since: 3.6.0
Security: Requires a privileged user (can be anonymous)
Usage: GET /artifactory/api/vcs/branches/{repoKey}/{userOrg}/{repo}
Produces: application/json
Sample Output for listing VCS branches in a repository:
GET /artifactory/api/vcs/branches/github/jquery/jquery
[ {
"name" : "1.11-stable",
"commitId" : "852529c9f148de6df205be01659a79731ce8ebef",
"isBranch" : true
}, {
"name" : "1.x-master",
"commitId" : "73c1ceaf4280bd0318679c1ad832181f3f449814",
"isBranch" : true
}
...]Sample Output for listing VCS branches in a subgroup repository:
GET /artifactory/api/vcs/branches/arti-repo/chromium/deps/gperf'
{
"name" : "main",
"commitId" : "e9eeea862a18e77b945d98eff7e1bf065d3daf8e",
"isBranch" : true
}, {
"name" : "master",
"commitId" : "e9eeea862a18e77b945d98eff7e1bf065d3daf8e",
"isBranch" : true
}In the example above, the user organization (userOrg) is chromium and the subgroup repository is /deps/gperf.