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
}Authorizations
Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Path Parameters
Owner of the repository
Name of the repository
SHA of the git blob