Test GraphQL APIs via the GraphQL Console¶
API Platform offers an integrated GraphQL Console to test GraphQL API proxies that you create and deploy. Since API Platform secures APIs with OAuth 2.0 authentication, the GraphQL Console generates test keys to help you invoke your GraphQL operations.
Follow these steps to test a GraphQL API proxy using the GraphQL Console:
- Go to the API Platform Console and log in.
- Select the project and GraphQL API proxy that you want to test.
-
Click Test in the left navigation menu, then select Console. This will open the GraphQL Console pane.
-
In the Console pane, select the desired environment from the drop-down menu.
- In the query editor, enter the GraphQL operation you want to execute (for example, a
queryormutation). - Click The Play Button. The response from the GraphQL API proxy will be displayed under the Response section.
