Module licenses_api

Source

Enums§

LicensesSlashGetAllCommonlyUsedError
struct for typed errors of method licenses_slash_get_all_commonly_used
LicensesSlashGetError
struct for typed errors of method licenses_slash_get
LicensesSlashGetForRepoError
struct for typed errors of method licenses_slash_get_for_repo

Functions§

licenses_slash_get
Gets information about a specific license. For more information, see "Licensing a repository ."
licenses_slash_get_all_commonly_used
Lists the most commonly used licenses on GitHub. For more information, see "Licensing a repository ."
licenses_slash_get_for_repo
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.