Get a git blob
curl --request GET \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/git/blobs/{sha} \
--header 'Authorization: <api-key>'{
"content": "<string>",
"encoding": "base64",
"url": "<string>",
"sha": "<string>",
"size": 123
}Miscellaneous
Get a git blob
Returns the content of a git blob object, base64 encoded.
GET
/
repos
/
{owner}
/
{repo}
/
git
/
blobs
/
{sha}
Get a git blob
curl --request GET \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/git/blobs/{sha} \
--header 'Authorization: <api-key>'{
"content": "<string>",
"encoding": "base64",
"url": "<string>",
"sha": "<string>",
"size": 123
}