Skip to content

Commit 8a27f6c

Browse files
committed
document the new meta api
1 parent c2d0d75 commit 8a27f6c

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

content/v3/meta.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: GitHub Meta API | GitHub API
3+
---
4+
5+
# GitHub Meta API
6+
7+
This gives some information about GitHub.com, the service.
8+
9+
GET /meta
10+
11+
### Response
12+
13+
<%= headers 200 %>
14+
<%= json :meta %>
15+
16+
### Body
17+
18+
hooks
19+
: An Array of IP addresses in CIDR format specifying the addresses that incoming
20+
service hooks will originate from. Subscribe to the [API Changes blog](http://developer.github.com/changes/)
21+
to get updated when this list changes.

layouts/default.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
<h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/v3/">Overview</a></h3>
4747
<ul class="js-guides">
4848
<li><a href="/v3/oauth/">OAuth</a></li>
49+
<li><a href="/v3/meta/">Meta</a></li>
4950
<li><a href="/v3/media/">Media Types</a></li>
5051
<li><a href="/v3/libraries/">Libraries</a></li>
5152
</ul>

lib/resources.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,10 @@ def text_html(response, status, head = {})
967967
"creator" => USER
968968
}
969969

970+
META = {
971+
:hooks => ['127.0.0.1/32']
972+
}
973+
970974
BLOB = {
971975
:content => "Content of the blob",
972976
:encoding => "utf-8",

0 commit comments

Comments
 (0)