latestOpenAPI 3.0.12026-08-10234260964.0 KB

6cc88fde6435

Repository

Get list of repository refs

Retrieve a list of refs/* in the repository backing a project. This endpoint functions similarly to git show-ref, with each returned object containing a ref field with the ref's name, and an object containing the associated commit ID.

The returned commit ID can be used with the Get a commit object endpoint to retrieve information about that specific commit.

get/projects/{projectId}/git/refs

Path parameters

projectIdstring required

Response

idstring required

The identifier of Ref

refstring required

The name of the reference

shastring required

The commit sha of the ref