repos
Get a repository README for a directory
Gets the README from a repository directory.
READMEs support custom media types for retrieving the raw content or rendered HTML.
get/repos/{owner}/{repo}/readme/{dir}
Path parameters
ownerstring required
The account owner of the repository. The name is not case sensitive.
repostring required
The name of the repository without the .git extension. The name is not case sensitive.
dirstring required
The alternate path to look for a README file
Query parameters
refstring
The name of the commit/branch/tag. Default: the repository’s default branch.
Response
Response
Example response
{
"target": "\"actual/actual.md\"",
"submodule_git_url": "\"git://example.com/defunkt/dotjs.git\""
}