Code references
List branches
Get a list of branches.
get/api/v2/code-refs/repositories/{repo}/branches
Path parameters
repostring string required
The repository name
The repository name
Response
Branch collection response
Example response
{
"items": [
{
"name": "main",
"head": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
"updateSequenceId": 25,
"references": [
{
"path": "/main/index.js",
"hint": "javascript",
"hunks": [
{
"startingLineNumber": 45,
"lines": "var enableFeature = 'enable-feature';",
"projKey": "default",
"flagKey": "enable-feature",
"aliases": [
"enableFeature",
"EnableFeature"
]
}
]
}
]
}
]
}