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 typeapplication/json
GitBlob represents a git blob
object
content
string
encoding
string
sha
string
size
integer format: int64
url
string
Examplegenerated
{ "content": "example", "encoding": "example", "sha": "example", "size": 1, "url": "example"}APIError is error format response
Media typeapplication/json
APIError is an api error with a message
object
message
string
url
string
Examplegenerated
{ "message": "example", "url": "example"}APINotFound is a not found error response
Media typeapplication/json
object
errors
Array<string>
message
string
url
string
Examplegenerated
{ "errors": [ "example" ], "message": "example", "url": "example"}