LogoFreestyle
API Reference/Git

Get a tree object

Get a tree from the Git database with its entries.

GET/git/v1/repo/{repo_id}/git/trees/{hash}

Path Parameters

repo_idRequiredstring

The repository ID

hashRequiredstring

The tree hash

curl -X GET "https://api.freestyle.sh/git/v1/repo/<string>/git/trees/<string>"

Tree retrieved successfully

{
  "tree": [
    {
      "path": "string",
      "sha": "string",
      "type": "blob"
    }
  ],
  "sha": "string"
}