diff --git a/content/admin/user-management/audited-actions.md b/content/admin/user-management/audited-actions.md index d59df38f15..c110485e35 100644 --- a/content/admin/user-management/audited-actions.md +++ b/content/admin/user-management/audited-actions.md @@ -27,7 +27,7 @@ Name | Description [add key]: /articles/adding-a-new-ssh-key-to-your-github-account [deploy key]: /guides/managing-deploy-keys/#deploy-keys [generate token]: /articles/creating-an-access-token-for-command-line-use - [OAuth access token]: /v3/oauth/ + [OAuth access token]: /developers/apps/authorizing-oauth-apps [OAuth application]: /guides/basics-of-authentication/#registering-your-app [2fa]: /articles/about-two-factor-authentication diff --git a/content/developers/webhooks-and-events/about-webhooks.md b/content/developers/webhooks-and-events/about-webhooks.md index 5287299c61..3123eb3183 100644 --- a/content/developers/webhooks-and-events/about-webhooks.md +++ b/content/developers/webhooks-and-events/about-webhooks.md @@ -31,4 +31,4 @@ See "[Webhook event payloads](/webhooks/event-payloads)" for the list of availab For more information about the `ping` event webhook payload, see the [`ping`](/webhooks/event-payloads/#ping) event. [org-hooks]: /rest/reference/orgs#webhooks/ -[repo-hooks]: /v3/repos/hooks/ +[repo-hooks]: /rest/reference/repos#hooks diff --git a/content/developers/webhooks-and-events/creating-webhooks.md b/content/developers/webhooks-and-events/creating-webhooks.md index c3723d70a3..17d3ac7a24 100644 --- a/content/developers/webhooks-and-events/creating-webhooks.md +++ b/content/developers/webhooks-and-events/creating-webhooks.md @@ -65,5 +65,5 @@ When you're finished, click **Add webhook**. Phew! Now that you created the webh To configure a webhook for all events, use the wildcard (`*`) character to specify the webhook events. When you add the wildcard event, we'll replace any existing events you have configured with the wildcard event and send you payloads for all supported events. You'll also automatically get any new events we might add in the future. [webhooks-overview]: /webhooks/ -[webhook-api]: /v3/repos/hooks/ +[webhook-api]: /rest/reference/repos#hooks [hooks-api]: /webhooks/#events diff --git a/content/rest/guides/building-a-ci-server.md b/content/rest/guides/building-a-ci-server.md index f30f0cfb83..a084419a96 100644 --- a/content/rest/guides/building-a-ci-server.md +++ b/content/rest/guides/building-a-ci-server.md @@ -166,8 +166,8 @@ All of this communication is funneled back to our chat rooms. You don't need to build your own CI setup to use this example. You can always rely on [GitHub integrations][integrations]. -[deploy API]: /v3/repos/deployments/ -[status API]: /v3/repos/statuses/ +[deploy API]: /rest/reference/repos#deployments +[status API]: /rest/reference/repos#statuses [ngrok]: https://ngrok.com/ [using ngrok]: /webhooks/configuring/#using-ngrok [platform samples]: https://github.com/github/platform-samples/tree/master/api/ruby/building-a-ci-server diff --git a/content/rest/guides/delivering-deployments.md b/content/rest/guides/delivering-deployments.md index e6d72e1d51..b9ef899783 100644 --- a/content/rest/guides/delivering-deployments.md +++ b/content/rest/guides/delivering-deployments.md @@ -184,7 +184,7 @@ server we've built above. At GitHub, we: That's it! You don't need to build your own deployment setup to use this example. You can always rely on [GitHub integrations][integrations]. -[deploy API]: /v3/repos/deployments/ +[deploy API]: /rest/reference/repos#deployments [status API]: /guides/building-a-ci-server [ngrok]: https://ngrok.com/ [using ngrok]: /webhooks/configuring/#using-ngrok diff --git a/content/rest/guides/discovering-resources-for-a-user.md b/content/rest/guides/discovering-resources-for-a-user.md index bc7b0faf77..5dec470323 100644 --- a/content/rest/guides/discovering-resources-for-a-user.md +++ b/content/rest/guides/discovering-resources-for-a-user.md @@ -93,16 +93,16 @@ If you've read the docs from cover to cover, you may have noticed an [API method As an application, you typically want all of the user's organizations (public and private) that your app is authorized to access. The workflow above will give you exactly that. -[basics-of-authentication]: /v3/guides/basics-of-authentication/ -[list-public-orgs]: /v3/orgs/#list-organizations-for-a-user -[list-repositories-for-current-user]: /v3/repos/#list-repositories-for-the-authenticated-user -[list-orgs-for-current-user]: /v3/orgs/#list-organizations-for-the-authenticated-user -[list-teams]: /v3/teams/#list-teams -[make-authenticated-request-for-user]: /v3/guides/basics-of-authentication/#making-authenticated-requests +[basics-of-authentication]: /rest/guides/basics-of-authentication +[list-public-orgs]: /rest/reference/orgs#list-organizations-for-a-user +[list-repositories-for-current-user]: /rest/reference/repos#list-repositories-for-the-authenticated-user +[list-orgs-for-current-user]: /rest/reference/orgs#list-organizations-for-the-authenticated-user +[list-teams]: /rest/reference/teams#list-teams +[make-authenticated-request-for-user]: /rest/guides/basics-of-authentication#making-authenticated-requests [oap]: https://developer.github.com/changes/2015-01-19-an-integrators-guide-to-organization-application-policies/ [octokit.rb]: https://github.com/octokit/octokit.rb -[pagination]: /v3/#pagination +[pagination]: /rest#pagination [platform samples]: https://github.com/github/platform-samples/tree/master/api/ruby/discovering-resources-for-a-user -[publicize-membership]: /v3/orgs/members/#set-public-organization-membership-for-the-authenticated-user -[register-oauth-app]: /v3/guides/basics-of-authentication/#registering-your-app +[publicize-membership]: /rest/reference/orgs#set-public-organization-membership-for-the-authenticated-user +[register-oauth-app]: /rest/guides/basics-of-authentication#registering-your-app [scopes]: /apps/building-oauth-apps/understanding-scopes-for-oauth-apps/ diff --git a/content/rest/guides/getting-started-with-the-rest-api.md b/content/rest/guides/getting-started-with-the-rest-api.md index 12947fd92d..59f0db19a6 100644 --- a/content/rest/guides/getting-started-with-the-rest-api.md +++ b/content/rest/guides/getting-started-with-the-rest-api.md @@ -432,33 +432,33 @@ Keep learning with the next API guide [Basics of Authentication][auth guide]! [webflow]: /apps/building-oauth-apps/authorizing-oauth-apps/ [create a new authorization API]: /rest/reference/oauth-authorizations#create-a-new-authorization [scopes]: /apps/building-oauth-apps/understanding-scopes-for-oauth-apps/ -[repos-api]: /v3/repos/ +[repos-api]: /rest/reference/repos [pages]: http://pages.github.com [nanoc]: http://nanoc.ws/ [gitignore templates]: https://github.com/github/gitignore -[issues-api]: /v3/issues/ +[issues-api]: /rest/reference/issues [link-header]: http://www.w3.org/wiki/LinkHeader/ -[conditional-requests]: /v3/#conditional-requests -[rate-limiting]: /v3/#rate-limiting -[users api]: /v3/users/#get-a-user -[auth user api]: /v3/users/#get-the-authenticated-user +[conditional-requests]: /rest#conditional-requests +[rate-limiting]: /rest#rate-limiting +[users api]: /rest/reference/users#get-a-user +[auth user api]: /rest/reference/users#get-the-authenticated-user [defunkt github]: https://github.com/defunkt [json]: http://en.wikipedia.org/wiki/JSON -[authentication]: /v3/#authentication +[authentication]: /rest#authentication [2fa]: /articles/about-two-factor-authentication [2fa header]: /rest/overview/other-authentication-methods#working-with-two-factor-authentication -[oauth section]: /v3/guides/getting-started/#oauth +[oauth section]: /rest/guides/getting-started-with-the-rest-api#oauth [personal token]: /articles/creating-an-access-token-for-command-line-use [tokens settings]: https://github.com/settings/tokens -[pagination]: /v3/#pagination -[get repo]: /v3/repos/#get-a-repository -[create repo]: /v3/repos/#create-a-repository-for-the-authenticated-user -[create issue]: /v3/issues/#create-an-issue +[pagination]: /rest#pagination +[get repo]: /rest/reference/repos#get-a-repository +[create repo]: /rest/reference/repos#create-a-repository-for-the-authenticated-user +[create issue]: /rest/reference/issues#create-an-issue [auth guide]: /guides/basics-of-authentication -[user repos api]: /v3/repos/#list-repositories-for-the-authenticated-user -[other user repos api]: /v3/repos/#list-repositories-for-a-user -[org repos api]: /v3/repos/#list-organization-repositories -[get issues api]: /v3/issues/#list-issues-assigned-to-the-authenticated-user -[repo issues api]: /v3/issues/#list-repository-issues +[user repos api]: /rest/reference/repos#list-repositories-for-the-authenticated-user +[other user repos api]: /rest/reference/repos#list-repositories-for-a-user +[org repos api]: /rest/reference/repos#list-organization-repositories +[get issues api]: /rest/reference/issues#list-issues-assigned-to-the-authenticated-user +[repo issues api]: /rest/reference/issues#list-repository-issues [etag]: http://en.wikipedia.org/wiki/HTTP_ETag -[2fa section]: /v3/guides/getting-started/#two-factor-authentication +[2fa section]: /rest/guides/getting-started-with-the-rest-api#two-factor-authentication diff --git a/content/rest/guides/rendering-data-as-graphs.md b/content/rest/guides/rendering-data-as-graphs.md index 4be2cf0a48..1fb621b0b7 100644 --- a/content/rest/guides/rendering-data-as-graphs.md +++ b/content/rest/guides/rendering-data-as-graphs.md @@ -371,7 +371,7 @@ arguments to `drawTreemap` above, to get all the information to show up properly [Octokit]: https://github.com/octokit/octokit.rb [D3 mortals]: http://www.recursion.org/d3-for-mere-mortals/ [D3 treemap]: http://bl.ocks.org/mbostock/4063582 -[language API]: /v3/repos/#list-repository-languages +[language API]: /rest/reference/repos#list-repository-languages [simple tree map]: http://2kittymafiasoftware.blogspot.com/2011/09/simple-treemap-visualization-with-d3.html [platform samples]: https://github.com/github/platform-samples/tree/master/api/ruby/rendering-data-as-graphs [new oauth application]: https://github.com/settings/applications/new diff --git a/content/rest/guides/traversing-with-pagination.md b/content/rest/guides/traversing-with-pagination.md index 8dee076136..9ee0ffc050 100644 --- a/content/rest/guides/traversing-with-pagination.md +++ b/content/rest/guides/traversing-with-pagination.md @@ -254,9 +254,9 @@ puts "The prev page link is #{prev_page_href}" puts "The next page link is #{next_page_href}" ``` -[pagination]: /v3/#pagination +[pagination]: /rest#pagination [platform samples]: https://github.com/github/platform-samples/tree/master/api/ruby/traversing-with-pagination [octokit.rb]: https://github.com/octokit/octokit.rb [personal token]: /articles/creating-an-access-token-for-command-line-use [hypermedia-relations]: https://github.com/octokit/octokit.rb#pagination -[listing commits]: /v3/repos/commits/#list-commits +[listing commits]: /rest/reference/repos#list-commits diff --git a/content/rest/guides/working-with-comments.md b/content/rest/guides/working-with-comments.md index dc314fc8bc..5b760d1877 100644 --- a/content/rest/guides/working-with-comments.md +++ b/content/rest/guides/working-with-comments.md @@ -119,8 +119,8 @@ on the entire commit. [commit comment]: https://github.com/octocat/Spoon-Knife/commit/cbc28e7c8caee26febc8c013b0adfb97a4edd96e#commitcomment-4049848 [sample PR]: https://github.com/octocat/Spoon-Knife/pull/1176 [platform-samples]: https://github.com/github/platform-samples/tree/master/api/ruby/working-with-comments -[issues]: /v3/issues/comments/ +[issues]: /rest/reference/issues#comments [personal token]: /articles/creating-an-access-token-for-command-line-use [octokit.rb]: https://github.com/octokit/octokit.rb -[PR Review API]: /v3/pulls/comments/ -[commit comment API]: /v3/repos/comments/#get-a-commit-comment +[PR Review API]: /rest/reference/pulls#comments +[commit comment API]: /rest/reference/repos#get-a-commit-comment diff --git a/content/rest/overview/media-types.md b/content/rest/overview/media-types.md index 56e49320b3..ccbfff6046 100644 --- a/content/rest/overview/media-types.md +++ b/content/rest/overview/media-types.md @@ -163,5 +163,5 @@ The gist contents are base64-encoded before being sent out. This can be useful i [gfm]:http://github.github.com/github-flavored-markdown/ [git-diff]: http://git-scm.com/docs/git-diff [git-patch]: http://git-scm.com/docs/git-format-patch -[hypermedia]: /v3/#hypermedia -[versions]: /v3/versions +[hypermedia]: /rest#hypermedia +[versions]: /developers/overview/about-githubs-apis diff --git a/content/rest/overview/other-authentication-methods.md b/content/rest/overview/other-authentication-methods.md index 296b715ce3..e641de8216 100644 --- a/content/rest/overview/other-authentication-methods.md +++ b/content/rest/overview/other-authentication-methods.md @@ -134,9 +134,9 @@ $ curl --request POST \ {% endif %} [curl]: http://curl.haxx.se/ -[oauth-auth]: /v3/#authentication +[oauth-auth]: /rest#authentication [personal-access-tokens]: /articles/creating-a-personal-access-token-for-the-command-line [saml-sso]: /articles/about-identity-and-access-management-with-saml-single-sign-on [saml-sso-tokens]: https://github.com/settings/tokens [allowlist]: /github/authenticating-to-github/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on -[user-issues]: /v3/issues/#list-issues-assigned-to-the-authenticated-user +[user-issues]: /rest/reference/issues#list-issues-assigned-to-the-authenticated-user