Create GraphQL APIs

  1. Follow the same guide to create a GraphQL API as in the GraphQL API Creation Guide.
  2. Update the organization of the generated CRs to match the super tenant organization name in the WSO2 API Manager or You can generate K8s resources by setting the organization as a zip file from config-deployer service using below command.

curl --location 'https://api.am.wso2.com:9095/api/configurator/1.1.0/apis/generate-k8s-resources?organization=carbon.super' \
--header 'Content-Type: multipart/form-data' \
--header 'Accept: application/zip' \
--form 'apkConfiguration=@"path/to/StarWars.apk-conf"' \
--form 'definitionFile=@"path/to/StarWarsAPI.graphql"' \
-k --output ./api-crds.zip
3. Deploy the generated K8s artifacts to the Kubernetes API server.

kubectl apply -n apk -f <path_to_extracted_zip_file>