This repository was archived by the owner on Nov 1, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,15 @@ for more details.
3030<%= headers 200, : pagination => default_pagination_rels %>
3131<%= json(: user ) { |h| [ h] } %>
3232
33+ ### Alternative response with star creation timestamps
34+
35+ You can also find out _ when_ stars were created by passing the following custom [ media type] ( /v3/media/ ) via the ` Accept ` header:
36+
37+ Accept: application/vnd.github.v3.star+json
38+
39+ <%= headers 200, : pagination => default_pagination_rels %>
40+ <%= json(: stargazer_with_timestamps ) { |hash| [ hash] } %>
41+
3342## List repositories being starred
3443
3544List repositories being starred by a user.
@@ -52,13 +61,12 @@ Name | Type | Description
5261<%= headers 200, : pagination => default_pagination_rels %>
5362<%= json(: repo ) { |h| [ h] } %>
5463
55- ## List repositories being starred with star creation timestamps
64+ ### Alternative response with star creation timestamps
5665
57- You can also find out _ when_ stars were created by passing the following custom content- type via the ` Accept ` header.
66+ You can also find out _ when_ stars were created by passing the following custom [ media type] ( /v3/media/ ) via the ` Accept ` header:
5867
5968 Accept: application/vnd.github.v3.star+json
6069
61- ### Response
6270<%= headers 200, : pagination => default_pagination_rels %>
6371<%= json(: starred_repo ) { |hash| [ hash] } %>
6472
Original file line number Diff line number Diff line change @@ -279,6 +279,11 @@ def fetch_content(key)
279279 "repo" => REPO
280280 }
281281
282+ STARGAZER_WITH_TIMESTAMPS ||= {
283+ "starred_at" => "2011-01-16T19:06:43Z" ,
284+ "user" => USER
285+ }
286+
282287 TAG ||= {
283288 "name" => "v0.1" ,
284289 "commit" => {
You can’t perform that action at this time.
0 commit comments