Skip to content

Commit e0065f6

Browse files
author
Sarah Edwards
authored
Update images for GraphQL docs (#35131)
1 parent ef98c01 commit e0065f6

File tree

7 files changed

+12
-13
lines changed

7 files changed

+12
-13
lines changed
-74.5 KB
Binary file not shown.
36.7 KB
Loading
89.7 KB
Loading
15.1 KB
Loading
-20.9 KB
Binary file not shown.

content/graphql/guides/managing-enterprise-accounts.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ For some example queries, see "[An example query using the Enterprise Accounts A
5353

5454
1. To authenticate with GraphQL, you need to generate a {% data variables.product.pat_generic %} from developer settings. For more information, see "[AUTOTITLE](/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)."
5555

56-
2. Grant admin and full control permissions to your {% data variables.product.pat_generic %} for areas of GHES you'd like to access. For full permission to private repositories, organizations, teams, user data, and access to enterprise billing and profile data, we recommend you select these scopes for your {% data variables.product.pat_generic %}:
56+
2. Grant admin and full control permissions to your {% data variables.product.pat_generic %} for areas of your enterprise you'd like to access. For full permission to private repositories, organizations, teams, user data, and access to enterprise billing and profile data, we recommend you select these scopes for your {% data variables.product.pat_generic %}:
5757
- `repo`
5858
- `admin:org`
5959
- `user`
@@ -84,16 +84,15 @@ The next steps will use Insomnia.
8484
- For your enterprise instance: `https://<HOST>/api/graphql`
8585
- For GitHub Enterprise Cloud: `https://api.github.com/graphql`
8686

87-
2. To authenticate, open the authentication options menu and select **Bearer token**. Next, add your {% data variables.product.pat_generic %} that you copied earlier.
88-
89-
![Permissions options for {% data variables.product.pat_generic %}](/assets/images/developer/graphql/insomnia-base-url-and-pat.png)
90-
91-
![Permissions options for {% data variables.product.pat_generic %}](/assets/images/developer/graphql/insomnia-bearer-token-option.png)
92-
93-
3. Include header information.
94-
- Add `Content-Type` as the header and `application/json` as the value.
95-
![Standard header](/assets/images/developer/graphql/json-content-type-header.png)
96-
![Header with preview value for the Audit Log API](/assets/images/developer/graphql/preview-header-for-2.18.png)
87+
1. Select the "Auth" menu and click **Bearer Token**. If you've previously selected a different authentication method, the menu will be labeled with that method, such as "Basic Auth", instead.
88+
![Screenshot of the expanded "Auth" menu in Insomnia. The menu label, "Auth", and the "Bearer Token" option are outlined in dark orange.](/assets/images/developer/graphql/insomnia-bearer-token-option.png)
89+
1. In the "TOKEN" field, enter your {% data variables.product.pat_generic %} from an earlier step.
90+
![Screenshot of the "Bearer" authentication settings in Insomnia. The "TOKEN" field is outlined in dark orange.](/assets/images/developer/graphql/insomnia-base-url-and-pat.png)
91+
1. Click **Headers**.
92+
![Screenshot of the settings tabs in Insomnia. The "Headers" tab is outlined in dark orange.](/assets/images/developer/graphql/json-content-type-header.png)
93+
1. Under the **Headers** tab, click **Add**.
94+
1. In the "header" field, enter `Content-Type`.
95+
1. In the "value" field, enter `application/json`.
9796

9897
Now you are ready to start making queries.
9998

content/graphql/guides/using-the-explorer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ To use the GraphiQL app, download and install it from https://github.com/skevy/g
3333
1. Get an [OAuth token](/graphql/guides/forming-calls-with-graphql#authenticating-with-graphql).
3434
1. Launch GraphiQL.
3535
1. In the upper-right corner of GraphiQL, click **Edit HTTP Headers**.
36-
1. In the **Key** field, enter `Authorization`. In the **Value** field, enter `Bearer <token>`, where `<token>` is your generated OAuth token.
37-
![graphiql headers](/assets/images/developer/graphiql-headers.png)
36+
1. In the **Key** field, enter `Authorization`.
37+
1. In the **Value** field, enter `Bearer TOKEN`, replacing `TOKEN` with your OAuth token from the first step.
3838
1. Click the checkmark to the right of the token to save it.
3939
1. To return to the editor, click outside of the **Edit HTTP Headers** modal.
4040
1. In the **GraphQL Endpoint** field, enter `{% data variables.product.graphql_url_pre %}`.

0 commit comments

Comments
 (0)