Save and download the sample StarWarsAPI.graphql file. This is the GraphQL SDL of the API that we will be using.
Login to the Publisher Console API Publisher of the WSO2 API Manager.
Under the GraphQL option, use Import GraphQL SDL option.
Provide the GraphQL definition of the API that was downloaded in step 1 and click Next.
Provide the following information.
Field
Sample value
Name
StarWarsAPI
Context
/starwars
Version
1.0.0
Endpoint
http://graphql-faker-service:9002/graphql
Select the APK Gateway and click Create.
Navigate to the Deploy section and click Deployments.
Click Deploy New Revision.
Optionally, provide a description for the revision.
Select the APK Gateways in which you want to deploy the API and click Deploy.
Navigate to Life Cycle tab. Then click Publish to publish the API.
To verify the API deployment in the APK Gateway, execute the following command. You will see the status of the deployed apis as follows once completed.