Skip to content

Commit d7f5104

Browse files
committed
Merge pull request github#985 from github/update-1454429507
2 parents 62f85d4 + c05a1b9 commit d7f5104

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

content/v3/gists.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ If you need the full contents of the file, you can make a `GET` request to the U
2222

2323
In addition to a specific file's contents being truncated, the entire files list may be trucated if the total number exceeds 300 files. If the top level `truncated` key is `true`, only the first 300 files have been returned in the files list. If you need to fetch all of the gist's files, you'll need to clone the gist via the URL provided by `git_pull_url`.
2424

25-
## List gists
25+
## List a user's gists
2626

27-
List a user's gists:
27+
List public gists for the specified user:
2828

2929
GET /users/:username/gists
3030

@@ -33,10 +33,38 @@ return all public gists:
3333

3434
GET /gists
3535

36-
List all public gists:
36+
### Parameters
37+
38+
Name | Type | Description
39+
-----|------|--------------
40+
`since`|`string` | A timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned.
41+
42+
### Response
43+
44+
<%= headers 200, :pagination => default_pagination_rels %>
45+
<%= json(:gist) { |h| [h] } %>
46+
47+
## List all public gists
48+
49+
List all public gists sorted by most recently updated to least recently updated.
50+
51+
Note: With pagination, you can fetch up to 200 [pages](/v3/#pagination).
3752

3853
GET /gists/public
3954

55+
### Parameters
56+
57+
Name | Type | Description
58+
-----|------|--------------
59+
`since`|`string` | A timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned.
60+
61+
### Response
62+
63+
<%= headers 200, :pagination => default_pagination_rels %>
64+
<%= json(:gist) { |h| [h] } %>
65+
66+
## List starred gists
67+
4068
List the authenticated user's starred gists:
4169

4270
GET /gists/starred

0 commit comments

Comments
 (0)