1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Remove VERSION from accept header (#22248)

This commit is contained in:
MarcoFalke
2022-11-23 23:31:02 +01:00
committed by GitHub
parent 92ea38565f
commit 5b5093e040
7 changed files with 18 additions and 27 deletions

View File

@@ -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. These are the supported media types for fetching gist contents.
application/vnd.github.VERSION.raw application/vnd.github.raw
application/vnd.github.VERSION.base64 application/vnd.github.base64
For more information, see "[Media types](/rest/overview/media-types)." For more information, see "[Media types](/rest/overview/media-types)."

View File

@@ -23,6 +23,6 @@ to your Git database on {% data variables.product.product_name %}. Blobs leverag
These are the supported media types for blobs. These are the supported media types for blobs.
application/json application/json
application/vnd.github.VERSION.raw application/vnd.github.raw
For more information, see "[Media types](/rest/overview/media-types)." For more information, see "[Media types](/rest/overview/media-types)."

View File

@@ -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. 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)." For more information, see "[Media types](/rest/overview/media-types)."

View File

@@ -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)." 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 {% data reusables.pull_requests.issues-media-types %}
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)."

View File

@@ -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. These are the supported media types for pull requests.
application/vnd.github.VERSION.raw+json application/vnd.github.raw+json
application/vnd.github.VERSION.text+json application/vnd.github.text+json
application/vnd.github.VERSION.html+json application/vnd.github.html+json
application/vnd.github.VERSION.full+json application/vnd.github.full+json
application/vnd.github.VERSION.diff application/vnd.github.diff
application/vnd.github.VERSION.patch application/vnd.github.patch
For more information, see "[Custom media types](/rest/overview/media-types)." For more information, see "[Custom media types](/rest/overview/media-types)."

View File

@@ -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: [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.raw
application/vnd.github.VERSION.html application/vnd.github.html
Use the `.raw` media type to retrieve the contents of the file. 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: [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 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. for a directory, the response will be an object with an `entries` attribute containing the array of objects.

View File

@@ -2,9 +2,9 @@
These are the supported media types for this API: These are the supported media types for this API:
application/vnd.github.VERSION.raw+json application/vnd.github.raw+json
application/vnd.github.VERSION.text+json application/vnd.github.text+json
application/vnd.github.VERSION.html+json application/vnd.github.html+json
application/vnd.github.VERSION.full+json application/vnd.github.full+json
For more information about media types, see "[Custom media types](/rest/overview/media-types)." For more information about media types, see "[Custom media types](/rest/overview/media-types)."