Skip to content

Commit 6e7d14d

Browse files
API documentation: Fixing space new header line bug (#25026)
1 parent c7b02e2 commit 6e7d14d

8 files changed

+10
-10
lines changed

content/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ In the following example, replace `INSTALLATION_ACCESS_TOKEN` with an installati
4949
curl --request GET \
5050
--url "{% data variables.product.api_url_pre %}/meta" \
5151
--header "Accept: application/vnd.github+json" \
52-
--header "Authorization: Bearer INSTALLATION_ACCESS_TOKEN"{% ifversion api-date-versioning %}\
52+
--header "Authorization: Bearer INSTALLATION_ACCESS_TOKEN"{% ifversion api-date-versioning %} \
5353
--header "X-GitHub-Api-Version: {{ allVersions[currentVersion].latestApiVersion }}"{% endif %}
5454
```
5555

content/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If a REST API endpoint requires you to authenticate as an app, the documentation
2626
curl --request GET \
2727
--url "{% data variables.product.api_url_pre %}/app/installations" \
2828
--header "Accept: application/vnd.github+json" \
29-
--header "Authorization: Bearer YOUR_JWT"{% ifversion api-date-versioning %}\
29+
--header "Authorization: Bearer YOUR_JWT"{% ifversion api-date-versioning %} \
3030
--header "X-GitHub-Api-Version: {{ allVersions[currentVersion].latestApiVersion }}"{% endif %}
3131
```
3232

content/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-json-web-token-jwt-for-a-github-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To use a JWT, pass it in the `Authorization` header of an API request. For examp
3030
curl --request GET \
3131
--url "{% data variables.product.api_url_pre %}/app" \
3232
--header "Accept: application/vnd.github+json" \
33-
--header "Authorization: Bearer YOUR_JWT"{% ifversion api-date-versioning %}\
33+
--header "Authorization: Bearer YOUR_JWT"{% ifversion api-date-versioning %} \
3434
--header "X-GitHub-Api-Version: {{ allVersions[currentVersion].latestApiVersion }}"{% endif %}
3535
```
3636

content/rest/guides/getting-started-with-the-rest-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ To send a header in a `curl` command, use the `--header` or `-H` flag followed b
326326
curl --request GET \
327327
--url "https://api.github.com/octocat" \
328328
--header "Accept: application/vnd.github+json" \
329-
--header "Authorization: Bearer <em>YOUR-TOKEN</em>"{% ifversion api-date-versioning %}\
329+
--header "Authorization: Bearer <em>YOUR-TOKEN</em>"{% ifversion api-date-versioning %} \
330330
--header "X-GitHub-Api-Version: {{ allVersions[currentVersion].latestApiVersion }}"{% endif %}
331331
```
332332

content/rest/overview/authenticating-to-the-rest-api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You can authenticate your request by sending a token in the `Authorization` head
2323
```shell
2424
curl --request GET \
2525
--url "{% data variables.product.api_url_code %}/octocat" \
26-
--header "Authorization: Bearer YOUR-TOKEN"{% ifversion api-date-versioning %}\
26+
--header "Authorization: Bearer YOUR-TOKEN"{% ifversion api-date-versioning %} \
2727
--header "X-GitHub-Api-Version: {{ allVersions[currentVersion].latestApiVersion }}"{% endif %}
2828
```
2929

@@ -61,7 +61,7 @@ For example:
6161
```shell
6262
curl --request POST \
6363
--url "{% data variables.product.api_url_code %}/authorizations"
64-
--user CLIENT_ID:CLIENT_SECRET{% ifversion api-date-versioning %}\
64+
--user CLIENT_ID:CLIENT_SECRET{% ifversion api-date-versioning %} \
6565
--header "X-GitHub-Api-Version: {{ allVersions[currentVersion].latestApiVersion }}"{% endif %}
6666
```
6767

@@ -80,7 +80,7 @@ If you want to use the API in a {% data variables.product.prodname_actions %} wo
8080
```shell
8181
curl --request GET \
8282
--url "{% data variables.product.api_url_code %}/user"
83-
--user USERNAME:PASSWORD{% ifversion api-date-versioning %}\
83+
--user USERNAME:PASSWORD{% ifversion api-date-versioning %} \
8484
--header "X-GitHub-Api-Version: {{ allVersions[currentVersion].latestApiVersion }}"{% endif %}
8585
```
8686

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ You can authenticate your request by sending a token in the `Authorization` head
9090
```shell
9191
curl --request GET \
9292
--url "{% data variables.product.api_url_code %}/octocat" \
93-
--header "Authorization: Bearer YOUR-TOKEN"{% ifversion api-date-versioning %}\
93+
--header "Authorization: Bearer YOUR-TOKEN"{% ifversion api-date-versioning %} \
9494
--header "X-GitHub-Api-Version: {{ allVersions[currentVersion].latestApiVersion }}"{% endif %}
9595
```
9696

data/reusables/apps/generate-installation-access-token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
curl --request POST \
1313
--url "{% data variables.product.api_url_pre %}/app/installations/INSTALLATION_ID/access_tokens" \
1414
--header "Accept: application/vnd.github+json" \
15-
--header "Authorization: Bearer JWT"{% ifversion api-date-versioning %}\
15+
--header "Authorization: Bearer JWT"{% ifversion api-date-versioning %} \
1616
--header "X-GitHub-Api-Version: {{ allVersions[currentVersion].latestApiVersion }}"{% endif %}
1717
```
1818

data/reusables/apps/user-access-token-example-request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
curl --request GET \
55
--url "{% data variables.product.api_url_pre %}/user" \
66
--header "Accept: application/vnd.github+json" \
7-
--header "Authorization: Bearer USER_ACCESS_TOKEN"{% ifversion api-date-versioning %}\
7+
--header "Authorization: Bearer USER_ACCESS_TOKEN"{% ifversion api-date-versioning %} \
88
--header "X-GitHub-Api-Version: {{ allVersions[currentVersion].latestApiVersion }}"{% endif %}
99
```

0 commit comments

Comments
 (0)