API

VcBrowser

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/browser/file load Selected repository browser file
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/browser/tree load Repository browser tree

Fields

Field Type Required Description

load

GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/browser/file

Operation ID: api_v1_org_repo_vcs_browser_file.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
ref query string Yes
path query string No
file query string No

Responses

200: Selected repository browser file

application/json

Property Type Required Description
ref object Yes
ref.default_branch string No
ref.name string Yes
ref.resolved_commit_id string Yes
selected_file object Yes
selected_file.encoding enum: utf-8, binary Yes
selected_file.file object No
selected_file.file.cacheKey string Yes
selected_file.file.contents string Yes
selected_file.file.lang string No
selected_file.file.name string Yes
selected_file.kind enum: text, binary, image, empty, missing, not_a_file, ... Yes
selected_file.line_count integer Yes
selected_file.line_count_label string Yes
selected_file.path string Yes
selected_file.raw_url string Yes
selected_file.size_bytes integer Yes
selected_file.size_label string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/browser/tree

Operation ID: api_v1_org_repo_vcs_browser_tree.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
recursive query boolean No Set false to read only root and ancestors of path.
path query string No Entry to reveal when recursive is false.
ref query string Yes

Responses

200: Repository browser tree

application/json

Property Type Required Description
directory_ref string No Immutable commit reference for expanding this tree. Fall back to ref.name when absent.
ref object Yes
ref.default_branch string No
ref.name string Yes
ref.resolved_commit_id string Yes
synced_spaces array of object Yes
synced_spaces[].provider string Yes
synced_spaces[].repository_full_name string Yes
synced_spaces[].root_path string Yes
synced_spaces[].url string (uri) Yes
tree object Yes
tree.loaded_directories array of string No Directories whose children are present; null for a recursive index.
tree.path_count integer Yes
tree.paths array of string Yes
tree.truncated boolean Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway