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
Authorization
string
headerrequiredThis API uses OAuth 2 with the implicit grant flow
Path Parameters
repo_id
string
requiredThe 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.
ref_id
string
requiredAn ID of a workspace, branch or commit.
path
string
requiredA path to a file inside the repository.
Response
200 - application/json
path
string
requiredprev_path
string
Optional hint in case the item was renamed or moved
status
enum<integer>
requiredOne of: 1 - INTACT, 2 - ADDED, 3 - MODIFIED, 4 - DELETED
Available options:
1
, 2
, 3
, 4
mode
enum<integer>
requiredThe file mode (as Unix mode)
Available options:
16877
, 33188
, 33261
, 40960
mtime
string
blob
object