Add GET /git/:id/branches
[
{
"name": "master",
"commit": {
"id": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
}
},
{
"name": "develop",
"commit": {
"id": "2ba20bda73ed9ab9b7d745a83ab5328fb02295d7"
}
},
...
]
To list all branches that are readable by the user.
The route is paginated.
Add GET /git/:id/files?path=path/to/file&ref=string
{
"encoding": "base64",
"size": 5362,
"name": "file",
"path": "path/to/file",
"content": "encoded content ..."
}
To get the content of a file on a given ref. If no ref given, refs/heads/master is used. The file is returned only if the requester can read it.
If the file does not exist of the requested path is not a file, a 404 will be thrown.
If the reference does not exist a 404 will be thrown.