You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`[ ]` Gist forks/history objects become separate API calls.
34
-
*`[ ]` Gist files object is not returned on Gist listings.
35
-
*`[ ]` Commit schema will change to be [more consistent](https://gist.github.com/3a2e5779588e21b0c0f3).
36
-
*`[ ]``master_branch` becomes `default_branch`.
37
-
*`[ ]``integrate_branch` on the [repo API](/v3/repos/#get) will no longer be
38
-
returned.
39
-
*`[ ]``merge_commit_sha` on the [pull request API](/v3/pulls/#get-a-single-pull-request)
40
-
will no longer be returned.
41
-
*`[ ]` Use the `private` attribute when creating a private repository,
42
-
instead of setting `public` to false.
43
-
*`[ ]` Use JSON to POST to the "repos/:owner/:repo/forks" endpoint, instead of a query string.
44
-
*`[✓]` <del>User Emails come back [as a hash][v3-email] instead of a string.</del>
45
-
*`[ ]` Remove the unused "bio" field for Users.
46
-
*`[ ]` When listing the contents of a directory in the [Repository Contents API](/v3/repos/contents/#get-contents), fix the `type` value returned for submodules: change the value to `"submodule"` (instead of `"file"`).
47
-
*`[ ]` Remove the [Legacy Search API](/v3/search/legacy/).
48
-
*`[ ]` Top-level `rate` hash on the [Rate Limit API](v3/rate_limit/) will no longer be returned.
24
+
### Deprecations
25
+
26
+
The following functionality is deprecated. For backwards compatibility purposes,
27
+
API v3 will continue to provide this functionality. However, this deprecated
28
+
functionality **will be removed** in the _next_ major version of the API.
29
+
30
+
The recommendations below will help you prepare your application for the next major version of the API.
31
+
32
+
1. Method: /gists/:id/fork
33
+
: Recommendation: Use **/gists/:id/forks** (plural) instead.
Copy file name to clipboardExpand all lines: content/v3/repos/contents.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,11 @@ ref
60
60
<%= headers 200 %>
61
61
<%= json :directory_content %>
62
62
63
+
Note: When listing the contents of a directory, submodules have their "type"
64
+
specified as "file". Logically, the value *should* be "submodule". This behavior
65
+
exists in API v3 [for backwards compatibility purposes](https://github.com/github/developer.github.com/commit/1b329b04cece9f3087faa7b1e0382317a9b93490).
66
+
In the next major version of the API, the type will be returned as "submodule".
67
+
63
68
### Response if content is a symlink
64
69
65
70
If the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the API responds with the content of the file (in the [format shown above](#response-if-content-is-a-file)).
0 commit comments