8000 Merge pull request #575 from github/update-1407360288 · Kvmmedia7/developer.github.com@dfdd395 · GitHub
[go: up one dir, main page]

Skip to content

Commit dfdd395

Browse files
author
hubot
committed
Merge pull request github#575 from github/update-1407360288
2 parents 3175df0 + 0f2fe70 commit dfdd395

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

content/v3.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,19 @@ with a Content-Type of 'application/json':
101101
$ curl -i -u username -d '{"scopes":["public_repo"]}' https://api.github.com/authorizations
102102
</pre>
103103

104+
## Root Endpoint
104105

106+
You can issue a `GET` request to the root endpoint to get all the endpoint categories that the API supports:
107+
108+
<pre class="terminal">
109+
$ curl https://api.github.com
110+
</pre>
111+
112+
Note that for GitHub Enterprise, [as with all other endpoints](https://developer.github.com/v3/enterprise/#endpoint-urls), you'll need to pass in your GitHub Enterprise endpoint as the hostname, *as well as your username and password*:
113+
114+
<pre class="terminal">
115+
$ curl https://<em>hostname</em>/api/v3/ -u <em>username</em>:<em>password</em>
116+
</pre>
105117

106118
## Client Errors
107119

0 commit comments

Comments
 (0)
0