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.

Commitf7657f0

Browse files
committed
Merge pull request#66 from github/improve-link-header-examples
Improve link header examples
2 parents63b9a8d +21b049b commitf7657f0

File tree

17 files changed

+52
-25
lines changed

17 files changed

+52
-25
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ API docs should look like:
5252

5353
### Response
5454

55-
<%= headers 200, :pagination =>true, 'X-Custom-Header' => "value" %>
55+
<%= headers 200, :pagination =>default_pagination_rels, 'X-Custom-Header' => "value" %>
5656
<%= json :resource_name %>
5757

5858
**Note**: We're using[Kramdown Markdown extensions](http://kramdown.rubyforge.org/syntax.html), such as definition lists.

‎content/v3/activity/events.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Fetching up to ten pages is supported, for a total of 300 events.
3333

3434
All Events have the same response format:
3535

36-
<%= headers 200,:pagination =>true %>
36+
<%= headers 200,:pagination =>{:next => 'https://api.github.com/resource?page=2' } %>
3737
<%= json(:event) { |h|[h] } %>
3838

3939
##List public events

‎content/v3/activity/starring.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ for more details.
2727

2828
###Response
2929

30-
<%= headers 200,:pagination =>true %>
30+
<%= headers 200,:pagination =>default_pagination_rels %>
3131
<%= json(:user) { |h|[h] } %>
3232

3333
##List repositories being starred
@@ -50,7 +50,7 @@ Name | Type | Description
5050

5151
###Response
5252

53-
<%= headers 200,:pagination =>true %>
53+
<%= headers 200,:pagination =>default_pagination_rels %>
5454
<%= json(:repo) { |h|[h] } %>
5555

5656
##Check if you are starring a repository

‎content/v3/activity/watching.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ post](/changes/2012-9-5-watcher-api/) for more details.
2929

3030
###Response
3131

32-
<%= headers 200,:pagination =>true %>
32+
<%= headers 200,:pagination =>default_pagination_rels %>
3333
<%= json(:user) { |h|[h] } %>
3434

3535
##List repositories being watched
@@ -44,7 +44,7 @@ List repositories being watched by the authenticated user.
4444

4545
###Response
4646

47-
<%= headers 200,:pagination =>true %>
47+
<%= headers 200,:pagination =>default_pagination_rels %>
4848
<%= json(:repo) { |h|[h] } %>
4949

5050
##Get a Repository Subscription

‎content/v3/gists.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Name | Type | Description
4242

4343
###Response
4444

45-
<%= headers 200,:pagination =>true %>
45+
<%= headers 200,:pagination =>default_pagination_rels %>
4646
<%= json(:gist) { |h|[h] } %>
4747

4848
##Get a single gist

‎content/v3/issues.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Name | Type | Description
3939

4040
###Response
4141

42-
<%= headers 200,:pagination =>true %>
42+
<%= headers 200,:pagination =>default_pagination_rels %>
4343
<%= json(:issue) { |h|[h] } %>
4444

4545
##List issues for a repository
@@ -62,7 +62,7 @@ Name | Type | Description
6262

6363
###Response
6464

65-
<%= headers 200,:pagination =>true %>
65+
<%= headers 200,:pagination =>default_pagination_rels %>
6666
<%= json(:issue) { |h|[h] } %>
6767

6868
##Get a single issue

‎content/v3/issues/comments.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You can read more about the use of media types in the API
2020

2121
###Response
2222

23-
<%= headers 200,:pagination =>true %>
23+
<%= headers 200,:pagination =>default_pagination_rels %>
2424
<%= json(:issue_comment) { |h|[h] } %>
2525

2626
##List comments in a repository

‎content/v3/issues/events.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ assigned
5555

5656
###Response
5757

58-
<%= headers 200,:pagination =>true %>
58+
<%= headers 200,:pagination =>default_pagination_rels %>
5959
<%= json(:issue_event) { |h|[h] } %>
6060

6161
##List events for a repository
@@ -64,7 +64,7 @@ assigned
6464

6565
###Response
6666

67-
<%= headers 200,:pagination =>true %>
67+
<%= headers 200,:pagination =>default_pagination_rels %>
6868
<%= json(:full_issue_event) { |h|[h] } %>
6969

7070
##Get a single event

‎content/v3/issues/milestones.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Name | Type | Description
2222

2323
###Response
2424

25-
<%= headers 200,:pagination =>true %>
25+
<%= headers 200,:pagination =>default_pagination_rels %>
2626
<%= json(:milestone) { |h|[h] } %>
2727

2828
##Get a single milestone

‎content/v3/oauth.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ users have two-factor authentication enabled.)
162162

163163
###Response
164164

165-
<%= headers 200,:pagination =>true %>
165+
<%= headers 200,:pagination =>default_pagination_rels %>
166166
<%= json(:oauth_access) { |h|[h] } %>
167167

168168
##Get a single authorization

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp