Skip to content

Commit 12d8926

Browse files
authored
repo sync
2 parents 1398440 + 38f399f commit 12d8926

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

content/developers/apps/authenticating-with-github-apps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ The example above uses the maximum expiration time of 10 minutes, after which th
112112
```json
113113
{
114114
"message": "'Expiration' claim ('exp') must be a numeric value representing the future time at which the assertion expires.",
115-
"documentation_url": "{% data variables.product.doc_url_pre %}/v3"
115+
"documentation_url": "{% data variables.product.doc_url_pre %}"
116116
}
117117
```
118118

content/rest/overview/resources-in-the-rest-api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ $ curl -I {% data variables.product.api_url_pre %} -u foo:bar
142142
143143
> {
144144
> "message": "Bad credentials",
145-
> "documentation_url": "{% data variables.product.doc_url_pre %}/v3"
145+
> "documentation_url": "{% data variables.product.doc_url_pre %}"
146146
> }
147147
```
148148
@@ -156,7 +156,7 @@ $ curl -i {% data variables.product.api_url_pre %} -u {% if currentVersion == "f
156156
> HTTP/1.1 403 Forbidden
157157
> {
158158
> "message": "Maximum number of login attempts exceeded. Please try again later.",
159-
> "documentation_url": "{% data variables.product.doc_url_pre %}/v3"
159+
> "documentation_url": "{% data variables.product.doc_url_pre %}"
160160
> }
161161
```
162162
@@ -403,7 +403,7 @@ If you exceed the rate limit, an error response returns:
403403
404404
> {
405405
> "message": "API rate limit exceeded for xxx.xxx.xxx.xxx. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
406-
> "documentation_url": "{% data variables.product.doc_url_pre %}/v3/#rate-limiting"
406+
> "documentation_url": "{% data variables.product.doc_url_pre %}/overview/resources-in-the-rest-api#rate-limiting"
407407
> }
408408
```
409409
@@ -448,7 +448,7 @@ If your application triggers this rate limit, you'll receive an informative resp
448448
449449
> {
450450
> "message": "You have triggered an abuse detection mechanism and have been temporarily blocked from content creation. Please retry your request again later.",
451-
> "documentation_url": "{% data variables.product.doc_url_pre %}/v3/#abuse-rate-limits"
451+
> "documentation_url": "{% data variables.product.doc_url_pre %}/overview/resources-in-the-rest-api#abuse-rate-limits"
452452
> }
453453
```
454454

data/variables/product.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ current-340-version: '11.10.354'
183183
# Developer site product variables
184184
# Use this inside command-line and other code blocks
185185
doc_url_pre: >-
186-
{% if currentVersion == "free-pro-team@latest" %}https://developer.github.com{% else %}https://developer.github.com/enterprise/{{currentVersion}}{% endif %}
186+
{% if currentVersion == "free-pro-team@latest" %}https://docs.github.com/rest{% elsif enterpriseServerVersions contains currentVersion %}https://docs.github.com/enterprise/{{ currentVersion | version_num }}/rest{% elsif currentVersion == "github-ae@latest" %}https://docs.github.com/github-ae@latest/rest{% endif %}
187187
# Use this inside command-line code blocks
188188
api_url_pre: >-
189-
{% if currentVersion == "free-pro-team@latest" %}https://api.github.com{% else %}http(s)://<em>[hostname]</em>/api/v3{% endif %}
189+
{% if currentVersion == "free-pro-team@latest" %}https://api.github.com{% elsif enterpriseServerVersions contains currentVersion %}http(s)://<em>[hostname]</em>/api/v3{% elsif currentVersion == "github-ae@latest" %}https://api.<em>[hostname]</em>{% endif %}
190190
# Use this inside command-line code blocks
191191
# Enterprise OAuth paths that don't include "/graphql" or "/api/v3"
192192
oauth_host_code: >-
@@ -195,10 +195,10 @@ device_authorization_url: >-
195195
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.21" or currentVersion == "github-ae@latest" %}[`https://github.com/login/device`](https://github.com/login/device){% else %}`http(s)://[hostname]/login/device`{% endif %}
196196
# Use this all other code blocks
197197
api_url_code: >-
198-
{% if currentVersion == "free-pro-team@latest" %}https://api.github.com{% else %}http(s)://[hostname]/api/v3{% endif %}
198+
{% if currentVersion == "free-pro-team@latest" %}https://api.github.com{% elsif enterpriseServerVersions contains currentVersion %}http(s)://[hostname]/api/v3{% elsif currentVersion == "github-ae@latest" %}https://api.[hostname]{% endif %}
199199
# Use this inside command-line code blocks
200200
graphql_url_pre: >-
201-
{% if currentVersion == "free-pro-team@latest" %}https://api.github.com/graphql{% else %}http(s)://<em>[hostname]</em>/api/graphql{% endif %}
201+
{% if currentVersion == "free-pro-team@latest" %}https://api.github.com/graphql{% elsif enterpriseServerVersions contains currentVersion %}http(s)://<em>[hostname]</em>/api/graphql{% elsif currentVersion == "github-ae@latest" %}https://api.<em>[hostname]</em>/graphql{% endif %}
202202
# Use this all other code blocks
203203
graphql_url_code: >-
204-
{% if currentVersion == "free-pro-team@latest" %}https://api.github.com/graphql{% else %}http(s)://[hostname]/api/graphql{% endif %}
204+
{% if currentVersion == "free-pro-team@latest" %}https://api.github.com/graphql{% elsif enterpriseServerVersions contains currentVersion %}http(s)://[hostname]/api/graphql{% elsif currentVersion == "github-ae@latest" %}https://api.[hostname]/graphql{% endif %}

0 commit comments

Comments
 (0)