Repository Manipulation
Get file entry (either tree or blob). Either one of workspace, branch or commit ID needs to be specified.
GET
/
repos
/
{repo_id}
/
files
/
{ref_id}
/
{path}
Authorizations
This API uses OAuth 2 with the implicit grant flow
Path Parameters
The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.
Required string length:
3 - 128
An ID of a workspace, branch or commit.
Required string length:
3 - 128
A path to a file inside the repository.
Response
200 - application/json
One of: 1 - INTACT, 2 - ADDED, 3 - MODIFIED, 4 - DELETED
Available options:
1
, 2
, 3
, 4
The file mode (as Unix mode)
Available options:
16877
, 33188
, 33261
, 40960
Optional hint in case the item was renamed or moved