Skip to content

Commit 4ba8d44

Browse files
committed
Add support for custom link headers in examples
1 parent 36359aa commit 4ba8d44

File tree

15 files changed

+46
-22
lines changed

15 files changed

+46
-22
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, '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 => :default %>
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 %>
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 %>
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 %>
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 %>
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 %>
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 %>
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 %>
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 %>
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 %>
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 %>
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 %>
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 %>
166166
<%= json(:oauth_access) { |h| [h] } %>
167167

168168
## Get a single authorization

0 commit comments

Comments
 (0)