Get the license for a repository
This method returns the contents of the repository’s license file, if one is detected.
Similar to Get repository content, this method also supports custom media types for retrieving the raw license content or rendered license HTML.
Path Parameters
Response
200 application/json
Response
Response
License Content
License Content
Show Child Parameters
License Simple
Show Child Parameters
Path Parameters
Render a Markdown document
Body
application/json
Body
The Markdown text to render in HTML.
The rendering mode. Can be either markdown
or gfm
.
Allowed values:markdowngfm
Default:markdown
Example:markdown
The repository context to use when creating references in gfm
mode. For example, setting context
to octo-org/octo-repo
will change the text #42
into an HTML link to issue 42 in the octo-org/octo-repo
repository.
Response
text/html
Response
Response
Body
Render a Markdown document in raw mode
You must send Markdown as plain text (using a Content-Type
header of text/plain
or text/x-markdown
) to this endpoint, rather than using JSON format. In raw mode, GitHub Flavored Markdown is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less.
Body
Body
Response
text/html
Response
Response
Body
GitHub API Root
Get Hypermedia links to resources accessible in GitHub’s REST API
Response
200 application/json
Response
Response
Get GitHub Enterprise Server meta information
Response
application/json
Response
Response
Api Overview
Api Overview
Example:true
Example:["13.65.0.0/16","157.55.204.33/32","2a01:111:f403:f90c::/62"]
Example:["192.168.7.15/32","192.168.7.16/32"]
Example:3.0.0