Skip to content

Commit 67500ae

Browse files
committed
Introduce prototype for beta-to-v3 changelog
1 parent 74f660f commit 67500ae

4 files changed

Lines changed: 40 additions & 11 deletions

File tree

content/v3.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ This describes the resources that make up the official GitHub API v3. If you hav
1414

1515
Accept: application/vnd.github.beta+json
1616

17-
The GitHub API version is currently in beta. [The `beta` media type](/v3/media/)
18-
property will be valid until sometime in 2013. A notice will be given closer
19-
to the actual date.
17+
There are two versions of the GitHub API: `beta` and `v3`. (There are just a few [differences](/v3/media/#beta-to-v3-changelog) between these two versions.)
2018

21-
We consider the "beta" API unchangeable. [File a support issue](https://github.com/contact)
22-
if you have problems.
19+
By default, all requests receive the `beta` version. We encourage you to [request a specific version via the `Accept` header](/v3/media/#beta-v3-and-the-future).
20+
21+
The `beta` API and `v3` API are both unchangeable. Please [file a support issue][support] if you have problems.
2322

2423
## Schema
2524

content/v3/gists.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ Name | Type | Description
4949

5050
GET /gists/:id
5151

52-
_Note_: When using the [v3 media type][2] the "user" field will become "owner"
52+
<div class="alert">
53+
<p>
54+
<strong>Note</strong>: When using the <a href="/v3/media/#beta-v3-and-the-future">v3 media type</a>, the <code>user</code> attribute is renamed to <code>owner</code>.
55+
</p>
56+
</div>
5357

5458
### Response
5559

@@ -168,4 +172,3 @@ including the filename with a `null` hash.
168172
<%= headers 204 %>
169173

170174
[1]: /v3/oauth/#scopes
171-
[2]: /v3/media

content/v3/issues.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ Name | Type | Description
6969

7070
GET /repos/:owner/:repo/issues/:number
7171

72+
<div class="alert">
73+
<p>
74+
<strong>Note</strong>: Every pull request is an issue, but not every issue is a pull request. When using the <a href="/v3/media/#beta-v3-and-the-future">v3 media type</a>, if the issue is not a pull request, the response omits the <code>pull_request</code> attribute.
75+
</p>
76+
</div>
77+
7278
### Response
7379

7480
<%= headers 200 %>

content/v3/media.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ for the `X-GitHub-Media-Type` header:
5353
## Beta, v3, and the Future
5454

5555
Ultimately, we aim for a version-less, [Hypermedia][hypermedia]-driven API.
56-
Before we get there, we [expect a few changes][expected-changes].
57-
5856
In the mean time, if you don't specify a version in the `Accept` header, you'll
5957
get the `beta` version (as shown above) by default.
6058

@@ -64,8 +62,31 @@ media type in the `Accept` header:
6462

6563
application/vnd.github.v3
6664

67-
Where there's a difference between the `beta` and `v3` representations, we'll
68-
strive to call out those differences.
65+
Check out the [full list of differences](#beta-to-v3-changelog) between `beta` and `v3` below.
66+
67+
## Beta-to-v3 Changelog
68+
69+
The v3 media type differs from the beta media type in just a few places:
70+
71+
### Gist JSON
72+
73+
For [Gists](/v3/gists/#get-a-single-gist), the v3 media type renames the `user` attribute to `owner`.
74+
75+
### Issue JSON
76+
77+
When an [issue](/v3/issues/#get-a-single-issue) is not a pull request, the v3 media type omits the `pull_request` attribute.
78+
79+
### Repository JSON
80+
81+
TODO
82+
83+
### User JSON
84+
85+
TODO
86+
87+
### User Emails JSON
88+
89+
TODO
6990

7091
## Comment Body Properties
7192

0 commit comments

Comments
 (0)