latestOpenAPI 3.0.12026-08-10234260964.0 KB

6cc88fde6435

Repository

Get a ref object

Retrieve the details of a single refs object in the repository backing a project. This endpoint functions similarly to git show-ref <pattern>, although the pattern must be a full ref id, rather than a matching pattern.

NOTE: The {repositoryRefId} must be properly escaped. That is, the ref refs/heads/master is accessible via /projects/{projectId}/git/refs/heads%2Fmaster.

get/projects/{projectId}/git/refs/{repositoryRefId}

Path parameters

projectIdstring required
repositoryRefIdstring required

Response

idstring required

The identifier of Ref

refstring required

The name of the reference

shastring required

The commit sha of the ref