Gets the blob of a repository.
GET
/repos/{owner}/{repo}/git/blobs/{sha}
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” owner
required
string
Owner of the repo
repo
required
string
Name of the repo
sha
required
string
Sha of the blob to retrieve
Responses
Section titled “ Responses ”GitBlob
Media type application/json
GitBlob represents a git blob
object
content
string
encoding
string
sha
string
size
integer format: int64
url
string
Example generated
{ "content": "example", "encoding": "example", "sha": "example", "size": 1, "url": "example"}APIError is error format response
Media type application/json
APIError is an api error with a message
object
message
string
url
string
Example generated
{ "message": "example", "url": "example"}APINotFound is a not found error response
Media type application/json
object
errors
Array<string>
message
string
url
string
Example generated
{ "errors": [ "example" ], "message": "example", "url": "example"}