GET
/
repos
/
{repo_id}
/
blobs
/
{ref_id}
/
{path}
curl --request GET \
  --url https://api.diversion.dev/v0/repos/{repo_id}/blobs/{ref_id}/{path} \
  --header 'Authorization: Bearer <token>'
"<string>"

Authorizations

Authorization
string
headerrequired

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

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.

ref_id
string
required

An ID of a workspace, branch or commit.

path
string
required

A path to a file inside the repository.

Response

200 - application/octet-stream

The response is of type string.