API Use Cases
This document outlines the use cases for different entities within Zeet's GraphQL APIs. Below are the entities, the recommended API version for each, and examples of how to perform CRUD operations.
API v1 Use Cases
Terraform, Helm, and Manifest Projects
Recommended API: API v1
- Create: To create a new project, use the
createProjectmutation. - Read: To read project details, use the
team.projectquery. - List: To list project details, use the
team.projectsquery. - Update: To update a project, use the
updateProjectmutation. - Delete: To delete a project, use the
deleteProjectmutation.
Terraform, Helm, and Manifest Deployment Configurations
Recommended API: API v1
- Read: To read deploy configurations, use the
project.deploysquery. - Update: To update a deploy configuration, use the
updateDeploymutation.
Terraform, Helm, and Manifest Workflow Runs
Recommended API: API v1
- Create: To create a new workflow run, use the
submitWorkflowmutation. - Read: To read workflow run details, use the
project.workflow.runquery. - List: To list workflow run details, use the
project.workflow.runsquery. - Abort: To abort a workflow run, use the
abortWorkflowRunmutation.
API v0 Use Cases
Service Container, Job Container, Serverless Function
Recommended API: API v0
- Create: To create a new app, use the
createResourceAlphamutation. - Read: To read app details, use the
repoquery. - List: To list app details, use the
user.reposquery. - Update: To update an app, use the
updateProjectmutation. - Delete: To delete an app, use the
deleteRepomutation.
Repo Deployment Runs
Recommended API: API v0
- Build and Deploy: To create a new deployment, use the
buildRepomutation. - Deploy: To create a new deployment (production branch), use the
deployRepomutation. - Deploy Branch: To deploy a preview branch (non-production branch) of an existing Repo, use the
deployRepoBranchmutation. - Rollback: To rollback a new deployment, use the
rollbackProjectToDeploymentmutation. - Read: To read deployment details, use the
repo.deploymentquery. - List: To read deployment details, use the
repo.deploymentsquery. - Abort: To abort a deployment, use the
abortBuildmutation.