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>"
}
]
}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>"
}
]
}