v1

latestOpenAPI 3.0.32026-07-22115106141.4 KB
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}

Response

File information

pathstring required
prev_pathstring

Optional hint in case the item was renamed or moved

status1 | 2 | 3 | 4 required

One of: 1 - INTACT, 2 - ADDED, 3 - MODIFIED, 4 - DELETED

mode16877 | 33188 | 33261 | 40960 required

The file mode (as Unix mode)

mtimestring date-time

Example response

{
  "path": "hello.cc",
  "blob": {
    "storage_uri": "repo_id/2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"
  }
}