| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0770fad commit dcc049f
12 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,32 +17,36 @@ compile '/changes.atom' do | |||
| 17 | 17 | end | |
| 18 | 18 | ||
| 19 | 19 | compile '/integrations-directory/*' do | |
| 20 | + filter :'conref-fs-filter' | ||
| 20 | 21 | filter :erb | |
| 21 | 22 | filter :html_pipeline, @config[:pipeline_config] | |
| 22 | 23 | layout item[:layout] || '/integrations-directory.*' | |
| 23 | 24 | end | |
| 24 | 25 | ||
| 25 | 26 | compile '/v3{.*,/**/*}' do | |
| 27 | + filter :'conref-fs-filter' | ||
| 26 | 28 | filter :erb | |
| 27 | 29 | filter :html_pipeline, @config[:pipeline_config] | |
| 28 | - filter :enterprise_only_filter | ||
| 29 | 30 | layout(item[:layout] ? "/#{item[:layout]}.*" : '/api.*') | |
| 30 | 31 | end | |
| 31 | 32 | ||
| 32 | 33 | compile "/changes/20*" do | |
| 34 | + filter :'conref-fs-filter' | ||
| 33 | 35 | filter :erb | |
| 34 | 36 | filter :html_pipeline, @config[:pipeline_config] | |
| 35 | 37 | layout '/changes.*' | |
| 36 | 38 | layout(item[:layout] ? "/#{item[:layout]}.*" : '/blog.*') | |
| 37 | 39 | end | |
| 38 | 40 | ||
| 39 | 41 | compile '/guides/**/*' do | |
| 42 | + filter :'conref-fs-filter' | ||
| 40 | 43 | filter :html_pipeline, @config[:pipeline_config] | |
| 41 | 44 | filter :erb | |
| 42 | 45 | layout(item[:layout] ? "/#{item[:layout]}.*" : '/guides.*') | |
| 43 | 46 | end | |
| 44 | 47 | ||
| 45 | 48 | compile '/webhooks/**/*' do | |
| 49 | + filter :'conref-fs-filter' | ||
| 46 | 50 | filter :erb | |
| 47 | 51 | filter :html_pipeline, @config[:pipeline_config] | |
| 48 | 52 | layout(item[:layout] ? "/#{item[:layout]}.*" : '/webhooks.*') | |
@@ -53,6 +57,7 @@ compile '/search/search-index.json' do | |||
| 53 | 57 | end | |
| 54 | 58 | ||
| 55 | 59 | compile '/**/*' do | |
| 60 | + filter :'conref-fs-filter' | ||
| 56 | 61 | filter :erb | |
| 57 | 62 | filter :html_pipeline, @config[:pipeline_config] | |
| 58 | 63 | layout(item[:layout] ? "/#{item[:layout]}.*" : '/default.*') | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,8 +41,6 @@ The latest release for GitHub Enterprise is <%= config[:versions][0] %>. The Git | |||
| 41 | 41 | ||
| 42 | 42 | Documentation for the API that's bundled with your GitHub Enterprise appliance is available for past releases: | |
| 43 | 43 | ||
| 44 | - * [API documentation for 2.3](https://developer.github.com/enterprise/2.3/) | ||
| 45 | - * [API documentation for 2.2](https://developer.github.com/enterprise/2.2/) | ||
| 46 | - * [API documentation for 2.1](https://developer.github.com/enterprise/2.1/) | ||
| 47 | - * [API documentation for 2.0](https://developer.github.com/enterprise/2.0/) | ||
| 48 | - * [API documentation for 11.10.340](https://developer.github.com/enterprise/11.10.340/) | ||
| 44 | + <% config[:versions][1..-1].each do |version| %> | ||
| 45 | + * [API documentation for <%= version %>](https://developer.github.com/enterprise/<%= version %>/) | ||
| 46 | + <% end %> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,9 @@ Make sure you understand how to [work with two-factor authentication](/v3/auth/# | |||
| 22 | 22 | <li><a href="#list-your-authorizations">List your authorizations</a></li> | |
| 23 | 23 | <li><a href="#get-a-single-authorization">Get a single authorization</a></li> | |
| 24 | 24 | <li><a href="#get-or-create-an-authorization-for-a-specific-app">Get-or-create an authorization for a specific app</a> - <code>token</code> is still returned for "create" </li> | |
| 25 | + {% if page.version == 'dotcom' or page.version > 2.2 %} | ||
| 25 | 26 | <li><a href="#get-or-create-an-authorization-for-a-specific-app-and-fingerprint">Get-or-create an authorization for a specific app and fingerprint</a> - <code>token</code> is still returned for "create" </li> | |
| 27 | + {% endif %} | ||
| 26 | 28 | <li><a href="#update-an-existing-authorization">Update an existing authorization</a></li> | |
| 27 | 29 | </ul> | |
| 28 | 30 | ||
@@ -107,7 +109,7 @@ Name | Type | Description | |||
| 107 | 109 | `scopes`|`array` | A list of scopes that this authorization is in. | |
| 108 | 110 | `note`|`string` | A note to remind you what the OAuth token is for. | |
| 109 | 111 | `note_url`|`string` | A URL to remind you what app the OAuth token is for. | |
| 110 | - `fingerprint`|`string` | A unique string to distinguish an authorization from others created for the same client and user. If provided, this API is functionally equivalent to [Get-or-create an authorization for a specific app and fingerprint](/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint). | ||
| 112 | + {% if page.version == 'dotcom' or page.version > 2.2 %}`fingerprint`|`string` | A unique string to distinguish an authorization from others created for the same client and user. If provided, this API is functionally equivalent to [Get-or-create an authorization for a specific app and fingerprint](/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint).{% endif %} | ||
| 111 | 113 | ||
| 112 | 114 | ||
| 113 | 115 | <%= json :client_secret => "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcd", :scopes => ["public_repo"], :note => 'admin script' %> | |
@@ -122,6 +124,8 @@ Name | Type | Description | |||
| 122 | 124 | <%= headers 200, :Location => get_resource(:oauth_access)['url'] %> | |
| 123 | 125 | <%= json(:oauth_access) { |h| h.merge("token" => "", "fingerprint" => "") } %> | |
| 124 | 126 | ||
| 127 | + {% if page.version == 'dotcom' or page.version > 2.2 %} | ||
| 128 | + | ||
| 125 | 129 | ## Get-or-create an authorization for a specific app and fingerprint | |
| 126 | 130 | ||
| 127 | 131 | This method will create a new authorization for the specified OAuth application, | |
@@ -156,6 +160,8 @@ Name | Type | Description | |||
| 156 | 160 | <%= headers 200, :Location => get_resource(:oauth_access)['url'] %> | |
| 157 | 161 | <%= json(:oauth_access) { |h| h.merge("token" => "") } %> | |
| 158 | 162 | ||
| 163 | + {% endif %} | ||
| 164 | + | ||
| 159 | 165 | ## Update an existing authorization | |
| 160 | 166 | ||
| 161 | 167 | PATCH /authorizations/:id | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,6 +6,20 @@ title: Organization Webhooks | |||
| 6 | 6 | ||
| 7 | 7 | {:toc} | |
| 8 | 8 | ||
| 9 | + {% if page.version != 'dotcom' and page.version <= 2.2 %} | ||
| 10 | + {{#tip}} | ||
| 11 | + The Organization Webhooks API is currently available for developers to preview. | ||
| 12 | + During the preview period, the API may change without advance notice. | ||
| 13 | + Please see the [blog post](/enterprise/{{ page.version }}/changes/2014-12-03-preview-the-new-organization-webhooks-api/) for full details. | ||
| 14 | + | ||
| 15 | + To access the API during the preview period, you must provide a custom [media type](/enterprise/2.2/v3/media) in the `Accept` header: | ||
| 16 | + | ||
| 17 | + ``` | ||
| 18 | + application/vnd.github.sersi-preview+json | ||
| 19 | + ``` | ||
| 20 | + {{/tip}} | ||
| 21 | + {% endif %} | ||
| 22 | + | ||
| 9 | 23 | Organization webhooks allow you to receive HTTP `POST` payloads whenever certain events happen within the organization. Subscribing to these events makes it possible to build integrations that react to actions on GitHub.com. For more information on actions you can subscribe to, check out our [Events documentation][webhook-events]. | |
| 10 | 24 | ||
| 11 | 25 | ## Scopes & Restrictions | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,15 +6,15 @@ title: Migrations | |||
| 6 | 6 | ||
| 7 | 7 | {:toc} | |
| 8 | 8 | ||
| 9 | - {{#enterprise-only}} | ||
| 9 | + {% if page.version != 'dotcom' %} | ||
| 10 | 10 | ||
| 11 | 11 | {{#warning}} | |
| 12 | 12 | ||
| 13 | 13 | This API is not currently available on GitHub Enterprise. | |
| 14 | 14 | ||
| 15 | 15 | {{/warning}} | |
| 16 | 16 | ||
| 17 | - {{/enterprise-only}} | ||
| 17 | + {% endif %} | ||
| 18 | 18 | ||
| 19 | 19 | {{#tip}} | |
| 20 | 20 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -130,12 +130,12 @@ the org that the team is associated with, or a maintainer of the team. | |||
| 130 | 130 | In order to list members in a team, the team must be visible to the | |
| 131 | 131 | authenticated user. | |
| 132 | 132 | ||
| 133 | - {{#enterprise-only}} | ||
| 133 | + {% if page.version != 'dotcom' and page.version >= 2.3 %} | ||
| 134 | 134 | ||
| 135 | 135 | <%= fetch_content(:if_site_admin) %> | |
| 136 | 136 | you will be able to list all members for the team. | |
| 137 | 137 | ||
| 138 | - {{/enterprise-only}} | ||
| 138 | + {% endif %} | ||
| 139 | 139 | ||
| 140 | 140 | GET /teams/:id/members | |
| 141 | 141 | ||
@@ -373,12 +373,12 @@ team. | |||
| 373 | 373 | ||
| 374 | 374 | GET /teams/:id/repos | |
| 375 | 375 | ||
| 376 | - {{#enterprise-only}} | ||
| 376 | + {% if page.version != 'dotcom' and page.version >= 2.3 %} | ||
| 377 | 377 | ||
| 378 | 378 | <%= fetch_content(:if_site_admin) %> | |
| 379 | 379 | you will be able to list all repositories for the team. | |
| 380 | 380 | ||
| 381 | - {{/enterprise-only}} | ||
| 381 | + {% endif %} | ||
| 382 | 382 | ||
| 383 | 383 | ### Response | |
| 384 | 384 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -67,7 +67,7 @@ Note: Pagination is powered exclusively by the `since` parameter. | |||
| 67 | 67 | Use the [Link header](/v3/#link-header) to get the URL for the next page of | |
| 68 | 68 | repositories. | |
| 69 | 69 | ||
| 70 | - {{#enterprise-only}} | ||
| 70 | + {% if page.version != 'dotcom' and page.version >= 2.3 %} | ||
| 71 | 71 | ||
| 72 | 72 | If you are an [authenticated](/v3/#authentication) site administrator for your Enterprise instance, | |
| 73 | 73 | you will be able to list all repositories including private repositories. | |
@@ -78,7 +78,7 @@ Name | Type | Description | |||
| 78 | 78 | -----|------|-------------- | |
| 79 | 79 | `visibility`|`string`| To include private repositories as well set to `all`. Default: `public` | |
| 80 | 80 | ||
| 81 | - {{/enterprise-only}} | ||
| 81 | + {% endif %} | ||
| 82 | 82 | ||
| 83 | 83 | GET /repositories | |
| 84 | 84 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,6 +14,8 @@ Prefix all the endpoints for this API with the following URL: | |||
| 14 | 14 | http(s)://<em>hostname</em>/api/v3 | |
| 15 | 15 | ``` | |
| 16 | 16 | ||
| 17 | + {% if page.version != 'dotcom' and page.version >= 2.3 %} | ||
| 18 | + | ||
| 17 | 19 | ## Create a new user | |
| 18 | 20 | ||
| 19 | 21 | POST /admin/users | |
@@ -84,6 +86,8 @@ Name | Type | Description | |||
| 84 | 86 | ||
| 85 | 87 | <%= headers 204 %> | |
| 86 | 88 | ||
| 89 | + {% endif %} | ||
| 90 | + | ||
| 87 | 91 | ## Promote an ordinary user to a site administrator | |
| 88 | 92 | ||
| 89 | 93 | PUT /users/:username/site_admin | |
@@ -136,6 +140,8 @@ If your GitHub Enterprise appliance has [LDAP Sync with Active Directory LDAP se | |||
| 136 | 140 | ||
| 137 | 141 | <%= headers 204 %> | |
| 138 | 142 | ||
| 143 | + {% if page.version != 'dotcom' and page.version >= 2.3 %} | ||
| 144 | + | ||
| 139 | 145 | ## List all public keys | |
| 140 | 146 | ||
| 141 | 147 | GET /admin/keys | |
@@ -147,6 +153,8 @@ If your GitHub Enterprise appliance has [LDAP Sync with Active Directory LDAP se | |||
| 147 | 153 | [public_key, deploy_key.merge("id" => "2", "url" => "https://api.github.com/repos/octocat/Hello-World/keys/2")] \ | |
| 148 | 154 | } %> | |
| 149 | 155 | ||
| 156 | + {% if page.version != 'dotcom' and page.version >= 2.4 %} | ||
| 157 | + | ||
| 150 | 158 | ## Delete a user | |
| 151 | 159 | ||
| 152 | 160 | {{#warning}} | |
@@ -163,10 +171,14 @@ You can delete any user account except your own. | |||
| 163 | 171 | ||
| 164 | 172 | <%= headers 204 %> | |
| 165 | 173 | ||
| 174 | + {% endif %} | ||
| 175 | + | ||
| 166 | 176 | ## Delete a public key | |
| 167 | 177 | ||
| 168 | 178 | DELETE /admin/keys/1 | |
| 169 | 179 | ||
| 170 | 180 | ### Response | |
| 171 | 181 | ||
| 172 | 182 | <%= headers 204 %> | |
| 183 | + | ||
| 184 | + {% endif %} | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,15 +22,15 @@ This endpoint is accessible with the user:email scope. | |||
| 22 | 22 | ||
| 23 | 23 | ## Add email address(es) | |
| 24 | 24 | ||
| 25 | - {{#enterprise-only}} | ||
| 25 | + {% if page.version != 'dotcom' && page.version >= 2.1 %} | ||
| 26 | 26 | ||
| 27 | 27 | {{#warning}} | |
| 28 | 28 | ||
| 29 | 29 | If your GitHub Enterprise appliance has [LDAP Sync enabled](https://help.github.com/enterprise/2.1/admin/guides/user-management/using-ldap) and the option to synchronize emails enabled, this API is disabled and will return a `403` response. Users managed in LDAP won't be able to add an email address via the API with these options enabled. | |
| 30 | 30 | ||
| 31 | 31 | {{/warning}} | |
| 32 | 32 | ||
| 33 | - {{/enterprise-only}} | ||
| 33 | + {% endif %} | ||
| 34 | 34 | ||
| 35 | 35 | POST /user/emails | |
| 36 | 36 | ||
@@ -58,15 +58,15 @@ You can post a single email address or an array of addresses: | |||
| 58 | 58 | ||
| 59 | 59 | ## Delete email address(es) | |
| 60 | 60 | ||
| 61 | - {{#enterprise-only}} | ||
| 61 | + {% if page.version != 'dotcom' && page.version >= 2.1 %} | ||
| 62 | 62 | ||
| 63 | 63 | {{#warning}} | |
| 64 | 64 | ||
| 65 | 65 | If your GitHub Enterprise appliance has [LDAP Sync enabled](https://help.github.com/enterprise/2.1/admin/guides/user-management/using-ldap) and the option to synchronize emails enabled, this API is disabled and will return a `403` response. Users managed in LDAP won't be able to remove an email address via the API with these options enabled. | |
| 66 | 66 | ||
| 67 | 67 | {{/warning}} | |
| 68 | 68 | ||
| 69 | - {{/enterprise-only}} | ||
| 69 | + {% endif %} | ||
| 70 | 70 | ||
| 71 | 71 | DELETE /user/emails | |
| 72 | 72 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,15 +49,15 @@ authenticated via Basic Auth or via OAuth with at least `read:public_key` | |||
| 49 | 49 | Creates a public key. Requires that you are authenticated via Basic Auth, | |
| 50 | 50 | or OAuth with at least `write:public_key` [scope](/v3/oauth/#scopes). | |
| 51 | 51 | ||
| 52 | - {{#enterprise-only}} | ||
| 52 | + {% if page.version != 'dotcom' && page.version >= 2.1 %} | ||
| 53 | 53 | ||
| 54 | 54 | {{#warning}} | |
| 55 | 55 | ||
| 56 | 56 | If your GitHub Enterprise appliance has [LDAP Sync enabled](https://help.github.com/enterprise/2.1/admin/guides/user-management/using-ldap) and the option to synchronize SSH keys enabled, this API is disabled and will return a `403` response. Users managed in LDAP won't be able to add an SSH key address via the API with these options enabled. | |
| 57 | 57 | ||
| 58 | 58 | {{/warning}} | |
| 59 | 59 | ||
| 60 | - {{/enterprise-only}} | ||
| 60 | + {% endif %} | ||
| 61 | 61 | ||
| 62 | 62 | POST /user/keys | |
| 63 | 63 | ||
@@ -81,15 +81,15 @@ instead. | |||
| 81 | 81 | Removes a public key. Requires that you are authenticated via Basic Auth | |
| 82 | 82 | or via OAuth with at least `admin:public_key` [scope](/v3/oauth/#scopes). | |
| 83 | 83 | ||
| 84 | - {{#enterprise-only}} | ||
| 84 | + {% if page.version != 'dotcom' && page.version >= 2.1 %} | ||
| 85 | 85 | ||
| 86 | 86 | {{#warning}} | |
| 87 | 87 | ||
| 88 | 88 | If your GitHub Enterprise appliance has [LDAP Sync enabled](https://help.github.com/enterprise/2.1/admin/guides/user-management/using-ldap) and the option to synchronize SSH keys enabled, this API is disabled and will return a `403` response. Users managed in LDAP won't be able to remove an SSH key address via the API with these options enabled. | |
| 89 | 89 | ||
| 90 | 90 | {{/warning}} | |
| 91 | 91 | ||
| 92 | - {{/enterprise-only}} | ||
| 92 | + {% endif %} | ||
| 93 | 93 | ||
| 94 | 94 | DELETE /user/keys/:id | |
| 95 | 95 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments