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.

Commitc023505

Browse files
committed
Merge pull request#65 from github/upcoming-change-to-default-media-type
Announce upcoming change to default media type
2 parentsa1142b9 +8d76d25 commitc023505

File tree

5 files changed

+73
-30
lines changed

5 files changed

+73
-30
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
kind:change
3+
title:Upcoming Change to Default Media Type
4+
created_at:2014-01-07
5+
author_name:jasonrudolph
6+
---
7+
8+
On April 15, 2014[*](#cutover-test), the GitHub API will start serving the v3 media type by default. The information below will help you determine whether your applications will be affected by this change. For affected applications, you'll find tips below to help you smoothly navigate this change.
9+
10+
##What's changing?
11+
12+
###A new default version
13+
14+
There are[two versions][versions] of the GitHub API:**beta** and**v3**. Today, requests receive the beta version by default. On April 15[*](#cutover-test), requests will begin receiving the v3 version by default.
15+
16+
For the most part, beta and v3 are remarkably similar. There are[just a few differences][differences] to keep in mind.
17+
18+
###A new default media type
19+
20+
The version is one part of the[media type][media]. By default, the API provides the beta media type:
21+
22+
application/vnd.github.beta+json
23+
24+
On April 15[*](#cutover-test), requests will begin responding with the v3 media type by default:
25+
26+
application/vnd.github.v3+json
27+
28+
##Who is affected?
29+
30+
Since 2012, we have encouraged developers to explicitly[request a specific media type via the`Accept` header][request-a-media-type]. If you are requesting either beta or v3 via the`Accept` header, then you are_not_ affected by this change. The API will continue to respond with the requested media type.
31+
32+
If you are not requesting beta or v3 via the`Accept` header, then the API is currently responding with the beta media type. On April 15[*](#cutover-test), the API will begin responding with the v3 media type. If your application relies on[functionality that differs between beta and v3][differences], then you are affected by this change. You will need to take steps to prepare for the change.
33+
34+
##What should you do?
35+
36+
If you are affected by this change, we recommend that you:
37+
38+
1. Update your applications to depend on the v3 functionality instead of the beta functionality. (If you use one of the popular[client libraries][libraries], there's a good chance that they've already done the work for you. In that case, you can just update to the latest version of that library.)
39+
2. Request the v3 media type via the`Accept` header.
40+
41+
If you cannot update your application to depend on the v3 functionality by April 15[*](#cutover-test), you can just request the beta media type via the`Accept` header. Doing so will insulate you from this change.
42+
43+
##Cutover test on March 12, 2014 {#cutover-test}
44+
45+
To help you understand the impact of this change before it becomes permanent, we will temporarily implement this change for a single day on March 12. From approximately 12:01am UTC to 11:59pm UTC on March 12, the API will respond with the v3 media type by default.
46+
47+
Follow[@GitHubAPI][] to receive updates before and after the test.
48+
49+
##Stay informed
50+
51+
Depending on the results of the cutover test, we may schedule additional tests before the final cutover on April 15. If so, we'll to announce them in advance. Be sure to stay tuned to the[blog] or follow[@GitHubAPI] for updates.
52+
53+
If you have any questions, please[get in touch][contact]. We'll be happy to help.
54+
55+
[@GitHubAPI]:https://twitter.com/GitHubAPI
56+
[blog]:/changes
57+
[contact]:https://github.com/contact?form[subject]=Upcoming+change+to+default+API+media+type
58+
[differences]:/v3/versions/#differences-from-beta-version
59+
[libraries]:/libraries/
60+
[media]:/v3/media
61+
[request-a-media-type]:/v3/media/#beta-v3-and-the-future
62+
[versions]:/v3/versions

‎content/changes/v3.html

Lines changed: 0 additions & 24 deletions
This file was deleted.

‎content/v3.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ There are [two versions](/v3/versions) of the GitHub API: **beta** and **v3**. B
1616

1717
Accept: application/vnd.github.beta+json
1818

19-
Eventually, v3 will become the default version. We encourage you to[request a specific version via the`Accept` header](/v3/media/#beta-v3-and-the-future).
19+
Soon, v3 will become the default version. Check out the[blog post](/changes/2014-01-07-upcoming-change-to-default-media-type/) for details.
20+
21+
We encourage you to[request a specific version via the`Accept` header](/v3/media/#beta-v3-and-the-future).
2022

2123
##Schema
2224

‎content/v3/media.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ for the `X-GitHub-Media-Type` header:
5555
If you don't specify a version in the`Accept` header, you'll
5656
get the[beta version](/v3/versions#beta) (as shown above) by default.
5757

58-
Eventually,[v3](/v3/versions#v3) will become the default version. We recommend that you start
59-
using v3 now. To get that version today, explicitly request the API v3
60-
media type in the`Accept` header:
58+
Soon,[v3](/v3/versions#v3) will become the default version. (Check out
59+
the[blog post](/changes/2014-01-07-upcoming-change-to-default-media-type/) for
60+
details.) We recommend that you start using v3 now. To get that version today,
61+
explicitly request the API v3 media type in the`Accept` header:
6162

62-
application/vnd.github.v3
63+
application/vnd.github.v3+json
6364

6465
Check out[version docs][versions] for the[full list of differences](/v3/versions#differences-from-beta-version) between beta and v3.
6566

‎content/v3/versions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Versions | GitHub API
55

66
There are two stable versions of the GitHub API:[beta](#beta) and[v3](#v3). There are just a few[differences between these two versions](#differences-from-beta-version).
77

8-
By default, all requests receive the beta version.Eventually, v3 will become the default version. We encourage you to[request a specific version via the`Accept` header](/v3/media/#beta-v3-and-the-future).
8+
By default, all requests receive the beta version.Soon, v3 will become the default version. (Check out the[blog post](/changes/2014-01-07-upcoming-change-to-default-media-type/) for details.) We encourage you to[request a specific version via the`Accept` header](/v3/media/#beta-v3-and-the-future).
99

1010
#v3
1111

@@ -96,6 +96,8 @@ The recommendations below will help you prepare your application for the next ma
9696

9797
The[beta API](/v3) is now stable and unchangeable. Please[file a support issue][support] if you have problems.
9898

99+
Starting April 15, 2014, the[beta version will no longer be the_default_ version](/changes/2014-01-07-upcoming-change-to-default-media-type/). However, we expect to continue supporting the beta version for a while. We will eventually retire the beta version, but we have no official retirement date to annouce at the moment. When the time comes, rest assured that we'll announce the retirement with plenty of notice.
100+
99101
##Breaking beta changes
100102

101103
###June 15th, 2011:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp