pub async fn licenses_slash_get_for_repo(
configuration: &Configuration,
owner: &str,
repo: &str,
ref: Option<&str>,
) -> Result<LicenseContent, Error<LicensesSlashGetForRepoError>>
Expand description
This method returns the contents of the repository’s license file, if one is detected. This endpoint supports the following custom media types. For more information, see "Media types." - application/vnd.github.raw+json
: Returns the raw contents of the license. - application/vnd.github.html+json
: Returns the license contents in HTML. Markup languages are rendered to HTML using GitHub’s open-source Markup library.