Function repos_slash_get_readme

Source
pub async fn repos_slash_get_readme(
    configuration: &Configuration,
    owner: &str,
    repo: &str,
    ref: Option<&str>,
) -> Result<ContentFile, Error<ReposSlashGetReadmeError>>
Expand description

Gets the preferred README for a repository. This endpoint supports the following custom media types. For more information, see "Media types." - application/vnd.github.raw+json: Returns the raw file contents. This is the default if you do not specify a media type. - application/vnd.github.html+json: Returns the README in HTML. Markup languages are rendered to HTML using GitHub’s open-source Markup library.