latestOpenAPI 3.0.12026-08-10234260964.0 KB

6cc88fde6435

Repository

Get a blob object

Retrieve, by hash, an object representing a blob in the repository backing a project. This endpoint allows direct read-only access to the contents of files in a repo. It returns the file in the content field of the response object, encoded according to the format in the encoding field, e.g. base64.

get/projects/{projectId}/git/blobs/{repositoryBlobId}

Path parameters

projectIdstring required
repositoryBlobIdstring required

Response

idstring required

The identifier of Blob

shastring required

The identifier of the tag

sizeinteger required

The size of the blob

encoding'base64' | 'utf-8' required

The encoding of the contents

contentstring required

The contents