Importing GraphQL API Definition File
Procedure
-
Navigate to New API Definition > Import a file. The Import an API Definition pop-up window opens.
-
In the Import an API Definition window, provide the following values:
-
In Schema Type, select GraphQL and click Choose file. In the system file selection dialog, select the file to upload.
noteBefore uploading a GraphQL schema file, ensure your file type is
.graphql,.gql, or.graphqls. -
In API Definition Name, enter the API definition name.
-
In Public Endpoint Domain, select a public domain from the list.
-
Optional: In Public Endpoint Subdomain, specify an optional subdomain for the public domain.
-
Optional: In Backend Endpoint Domain, specify the domain name for the API call that will be sent to the Endpoint system that contains your data.
-
In Organization, select an organization from the list.
-
Click Preview.
-
Click Save and continue.
On successful API creation, the new API endpoint appears on the Endpoints:
<your api name>page.
-
On Endpoints:
<your api name>page, click on the endpoint link in the Name column. This opens the Methods:<your api name>page. You can create a new method definition and view the endpoint configuration for your API in each of the tabs on this page.
-
Next Steps
On the Key & Method Detection page, configure the GRAPHQL API key and method settings. Refer to Configuring API Endpoint Key and Method Detection Settings for more information.