Remove VERSION from accept header (#22248)
This commit is contained in:
@@ -33,7 +33,7 @@ In addition to a specific file's contents being truncated, the entire files list
|
||||
|
||||
These are the supported media types for fetching gist contents.
|
||||
|
||||
application/vnd.github.VERSION.raw
|
||||
application/vnd.github.VERSION.base64
|
||||
application/vnd.github.raw
|
||||
application/vnd.github.base64
|
||||
|
||||
For more information, see "[Media types](/rest/overview/media-types)."
|
||||
|
||||
@@ -23,6 +23,6 @@ to your Git database on {% data variables.product.product_name %}. Blobs leverag
|
||||
These are the supported media types for blobs.
|
||||
|
||||
application/json
|
||||
application/vnd.github.VERSION.raw
|
||||
application/vnd.github.raw
|
||||
|
||||
For more information, see "[Media types](/rest/overview/media-types)."
|
||||
|
||||
@@ -21,6 +21,6 @@ When you create a new repository on {% ifversion ghae %}{% data variables.produc
|
||||
|
||||
You can use this custom media type when getting a gitignore template.
|
||||
|
||||
application/vnd.github.VERSION.raw
|
||||
application/vnd.github.raw
|
||||
|
||||
For more information, see "[Media types](/rest/overview/media-types)."
|
||||
|
||||
@@ -17,13 +17,4 @@ allowTitleToDifferFromFilename: true
|
||||
|
||||
Pull request review comments are comments on a portion of the unified diff made during a pull request review. Commit comments and issue comments are different from pull request review comments. You apply commit comments directly to a commit and you apply issue comments without referencing a portion of the unified diff. For more information, see "[Create a commit comment](/rest/reference/commits#create-a-commit-comment)" and "[Create an issue comment](/rest/reference/issues#create-an-issue-comment)."
|
||||
|
||||
### Custom media types for pull request review comments
|
||||
|
||||
These are the supported media types for pull request review comments.
|
||||
|
||||
application/vnd.github.VERSION.raw+json
|
||||
application/vnd.github.VERSION.text+json
|
||||
application/vnd.github.VERSION.html+json
|
||||
application/vnd.github.VERSION.full+json
|
||||
|
||||
For more information, see "[Custom media types](/rest/overview/media-types)."
|
||||
{% data reusables.pull_requests.issues-media-types %}
|
||||
|
||||
@@ -21,12 +21,12 @@ Every pull request is an issue, but not every issue is a pull request. For this
|
||||
|
||||
These are the supported media types for pull requests.
|
||||
|
||||
application/vnd.github.VERSION.raw+json
|
||||
application/vnd.github.VERSION.text+json
|
||||
application/vnd.github.VERSION.html+json
|
||||
application/vnd.github.VERSION.full+json
|
||||
application/vnd.github.VERSION.diff
|
||||
application/vnd.github.VERSION.patch
|
||||
application/vnd.github.raw+json
|
||||
application/vnd.github.text+json
|
||||
application/vnd.github.html+json
|
||||
application/vnd.github.full+json
|
||||
application/vnd.github.diff
|
||||
application/vnd.github.patch
|
||||
|
||||
For more information, see "[Custom media types](/rest/overview/media-types)."
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@ To request the raw format or rendered HTML (when supported), use custom media ty
|
||||
|
||||
[READMEs](/rest/reference/repos#get-a-repository-readme), [files](/rest/reference/repos#get-repository-content), and [symlinks](/rest/reference/repos#get-repository-content) support the following custom media types:
|
||||
|
||||
application/vnd.github.VERSION.raw
|
||||
application/vnd.github.VERSION.html
|
||||
application/vnd.github.raw
|
||||
application/vnd.github.html
|
||||
|
||||
Use the `.raw` media type to retrieve the contents of the file.
|
||||
|
||||
@@ -30,7 +30,7 @@ For markup files such as Markdown or AsciiDoc, you can retrieve the rendered HTM
|
||||
|
||||
[All objects](/rest/reference/repos#get-repository-content) support the following custom media type:
|
||||
|
||||
application/vnd.github.VERSION.object
|
||||
application/vnd.github.object
|
||||
|
||||
Use the `object` media type parameter to retrieve the contents in a consistent object format regardless of the content type. For example, instead of an array of objects
|
||||
for a directory, the response will be an object with an `entries` attribute containing the array of objects.
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
These are the supported media types for this API:
|
||||
|
||||
application/vnd.github.VERSION.raw+json
|
||||
application/vnd.github.VERSION.text+json
|
||||
application/vnd.github.VERSION.html+json
|
||||
application/vnd.github.VERSION.full+json
|
||||
application/vnd.github.raw+json
|
||||
application/vnd.github.text+json
|
||||
application/vnd.github.html+json
|
||||
application/vnd.github.full+json
|
||||
|
||||
For more information about media types, see "[Custom media types](/rest/overview/media-types)."
|
||||
|
||||
Reference in New Issue
Block a user