Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit 4a5d4f5

Browse files
committed
add the new media type header
1 parent 2e25329 commit 4a5d4f5

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

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)