LogoFreestyle
API Reference/Git

Get a blob object

Get a blob from the Git database. The contents will always be base64 encoded.

GET/git/v1/repo/{repo}/git/blobs/{hash}

Path Parameters

repoRequiredstring

The repository id

Format: "uuid"

Response Body

200

Blob retrieved successfully

contentRequiredstring

The content of the blob, base64 encoded.

encodingRequiredstring

The encoding of the blob. Always base64.

Value in: "base64"
shaRequiredstring

The object's hash.

400

Invalid request

messageRequiredstring

403

Forbidden

messageRequiredstring

404

Blob not found

messageRequiredstring

500

Internal server error

messageRequiredstring
curl -X GET "https://api.freestyle.sh/git/v1/repo/497f6eca-6276-4993-bfeb-53cbbbba6f08/git/blobs/{hash}"

Blob retrieved successfully

{
  "content": "string",
  "encoding": "base64",
  "sha": "string"
}