Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.54 KB

File metadata and controls

34 lines (28 loc) · 1.54 KB
ms.service azure-api-management
ms.topic include
author dlepow
ms.author danlep
ms.date 10/07/2025

Test your GraphQL API

  1. Go to your API Management instance.

  2. In the left pane, in the APIs section, select APIs.

  3. Under All APIs, select your GraphQL API.

  4. Select the Test tab to access the test console.

  5. Under Headers:

    1. Select the header from the Name menu.
    2. Enter the value in the Value box.
    3. Add more headers by selecting Add header.
    4. Delete headers by using the recycle bin button.
  6. If you've added a product to your GraphQL API, add a product scope under Apply product scope.

  7. In Query editor, do one of the following:

    1. Select at least one field or subfield from the list in the menu to the left of the editor. The fields and subfields you select appear in the query editor.

    2. Start typing in the query editor to compose a query.

      :::image type="content" source="media/api-management-graphql-test/test-graphql-query.png" alt-text="Screenshot of the query editor." lightbox="media/api-management-graphql-test/test-graphql-query.png":::

  8. Under Query variables, add variables to reuse the same query or mutation and pass different values.

  9. Select Send.

  10. View the Response.

    :::image type="content" source="media/api-management-graphql-test/graphql-query-response.png" alt-text="Screenshot of the test query response.":::

  11. Repeat the preceding steps to test different payloads.

  12. When you're done testing, exit the test console.