Get a tree
curl --request GET \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/git/trees/{sha} \
--header 'Authorization: <api-key>'{
"sha": "<string>",
"url": "<string>",
"tree": [
{
"path": "<string>",
"mode": "<string>",
"type": "<string>",
"size": 123,
"sha": "<string>",
"url": "<string>"
}
]
}Miscellaneous
Get a tree
GET
/
repos
/
{owner}
/
{repo}
/
git
/
trees
/
{sha}
Get a tree
curl --request GET \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/git/trees/{sha} \
--header 'Authorization: <api-key>'{
"sha": "<string>",
"url": "<string>",
"tree": [
{
"path": "<string>",
"mode": "<string>",
"type": "<string>",
"size": 123,
"sha": "<string>",
"url": "<string>"
}
]
}