Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit4a5d4f5

Browse files
committed
add the new media type header
1 parent2e25329 commit4a5d4f5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎content/v3/mime.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,23 @@ put the version before the property:
3030

3131
application/vnd.github.beta.raw+json
3232

33+
You can check the current version through every response's headers. Look
34+
for the`X-GitHub-Media-Type` header:
35+
36+
$ curl https://api.github.com/users/technoweenie -I
37+
HTTP/1.1 200 OK
38+
X-GitHub-Media-Type: github.beta
39+
40+
$ curl https://api.github.com/users/technoweenie -I \
41+
-H "Accept: application/vnd.github.full+json"
42+
HTTP/1.1 200 OK
43+
X-GitHub-Media-Type: github.beta; param=full; format=json
44+
45+
$ curl https://api.github.com/users/technoweenie -I \
46+
-H "Accept: application/vnd.github.v3.full+json"
47+
HTTP/1.1 200 OK
48+
X-GitHub-Media-Type: github.v3; param=full; format=json
49+
3350
For specifics on versions, check the[API changelog](/v3/changelog).
3451

3552
##Comment Body Properties

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp