Creating a GraphQL API by Importing an API from URL
Let’s look at a sample scenario, where you are creating a GraphQL API, Star Wars API, by importing an API from URL.
Before you begin
Ensure that you have:
- Manage APIs or Activate/Deactivate APIs functional privilege. If you are an Administrator, you would have this privilege by default.
- A GraphQL API base URL to create an API using the importer. For example, you can use the base URL https://raw.githubusercontent.com/graphql/swapi-graphql/master/schema.graphql.
To create a GraphQL API by importing an API from URL
Next steps
Now that you have created the REST API, you must
- Assess the GraphQL API is working as expected by testing it using one of the API testing tools. For details on how to test this API, see Testing a GraphQL API using Postman