API

VcFile

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/files list Flat repository file index

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

vc_files, err := client.VcFile(nil).List(map[string]any{"organization_id": "example", "repo_id": "example", "ref": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(vc_files)

Lua

Construct client as shown in the Lua setup, then call the operations:

local vc_files, err = client:VcFile():list({ organization_id = "example", repo_id = "example", ref = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$vc_files = $client->VcFile()->list(["organization_id" => "example", "repo_id" => "example", "ref" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

vc_files = client.VcFile().list({"organization_id": "example", "repo_id": "example", "ref": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

vc_files = client.VcFile.list({ "organization_id" => "example", "repo_id" => "example", "ref" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const vc_files = await client.VcFile().list({ organization_id: "example", repo_id: "example", ref: "example" })

Fields

Field Type Required Description
paths array Yes Paths
truncated boolean Yes Truncated

list

GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/files

Operation ID: api_v1_org_repo_vcs_files.

Authentication: bearer token (bearerAuth).

Parameters

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

Responses

200: Flat repository file index

application/json

Property Type Required Description
paths array of string Yes
truncated boolean Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway