username:password
Authorization: Basic *****************
curl --location --request GET '/repos///contents/' \
--header 'Authorization: Basic Og=='
content
is populated when type
is file
, otherwise nullencoding
is populated when type
is file
, otherwise nullsubmodule_git_url
is populated when type
is submodule
, otherwise nulltarget
is populated when type
is symlink
, otherwise nulltype
will be file
, dir
, symlink
, or submodule
{
"_links": {
"git": "string",
"html": "string",
"self": "string"
},
"content": "string",
"download_url": "string",
"encoding": "string",
"git_url": "string",
"html_url": "string",
"last_commit_sha": "string",
"name": "string",
"path": "string",
"sha": "string",
"size": 0,
"submodule_git_url": "string",
"target": "string",
"type": "string",
"url": "string"
}