[1] Custom Mime Types | GitHub API ( ( 版)) http://developer.github.com/v3/mime/
[2] Media Types | GitHub API ( 版) https://developer.github.com/v3/media/
You can check the current version through every response’s headers. Look for the X-GitHub-Media-Type header:
$ curl https://api.github.com/users/technoweenie -I
HTTP/1.1 200 OK
X-GitHub-Media-Type: github.v3
$ curl https://api.github.com/users/technoweenie -I \
-H "Accept: application/vnd.github.full+json"
HTTP/1.1 200 OK
X-GitHub-Media-Type: github.v3; param=full; format=json
$ curl https://api.github.com/users/technoweenie -I \
-H "Accept: application/vnd.github.v3.full+json"
HTTP/1.1 200 OK
X-GitHub-Media-Type: github.v3; param=full; format=json
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+json application/vnd.github.VERSION.raw application/vnd.github.VERSION.diff application/vnd.github.VERSION.patch application/vnd.github.VERSION.raw application/vnd.github.VERSION.html application/vnd.github.VERSION.raw application/vnd.github.VERSION.base64
During the preview period you needed to provide the application/vnd.github.cerberus-preview preview media type in the Accept header to opt-in to the changes. Now that the preview period has ended, you no longer need to specify this custom media type.
To access this functionality during the preview period, you’ll need to provide the following custom media type in the Accept header:
application/vnd.github.mister-fantastic-preview+json
To access this functionality during the preview period, you’ll need to provide the following custom media type in the Accept header:
application/vnd.github.loki-preview+json
During the preview period you needed to provide the application/vnd.github.the-key-preview+json preview media type in the Accept header to opt-in to the new endpoints. Now that the preview period has ended, you no longer need to specify this custom media type.
We have now have endpoints for managing repository invitations for both repository administrators and invitation recipients through the GitHub API. You can enable these changes during the preview period by providing a custom media type in the Accept header:
application/vnd.github.swamp-thing-preview
To access the API during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.inertia-preview+json
To access the API you must provide a custom media type in the Accept header:
application/vnd.github.squirrel-girl-preview
To access the Migrations API, you must provide a custom media type in the Accept header:
application/vnd.github.wyandotte-preview+json
The source import APIs are currently in public preview. During this period, the APIs may change in a backwards-incompatible way. To access the API during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.barred-rock-preview
To access the API during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.drax-preview+json
[15]
これ実際 application/vnd.github.VERSION.raw
の VERSION は abc
でも xyz
でも VERSION
でも何でもいいみたいですwwwww
[16] バージョニングの失敗例じゃねーかwww
[17] REST API endpoints for licenses - GitHub Docs, https://docs.github.com/en/rest/licenses/licenses?apiVersion=2022-11-28
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.