Combine product name variables for REST and GraphQL API base URLs (#50521)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
```shell
|
||||
curl --request POST \
|
||||
--url "{% data variables.product.api_url_pre %}/app/installations/INSTALLATION_ID/access_tokens" \
|
||||
--url "{% data variables.product.rest_url %}/app/installations/INSTALLATION_ID/access_tokens" \
|
||||
--header "Accept: application/vnd.github+json" \
|
||||
--header "Authorization: Bearer JWT" \
|
||||
--header "X-GitHub-Api-Version: {{ allVersions[currentVersion].latestApiVersion }}"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
```shell
|
||||
curl --request GET \
|
||||
--url "{% data variables.product.api_url_pre %}/user" \
|
||||
--url "{% data variables.product.rest_url %}/user" \
|
||||
--header "Accept: application/vnd.github+json" \
|
||||
--header "Authorization: Bearer USER_ACCESS_TOKEN" \
|
||||
--header "X-GitHub-Api-Version: {{ allVersions[currentVersion].latestApiVersion }}"
|
||||
|
||||
Reference in New Issue
Block a user