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
createProject
mutation. - Read: To read project details, use the
team.project
query. - List: To list project details, use the
team.projects
query. - Update: To update a project, use the
updateProject
mutation. - Delete: To delete a project, use the
deleteProject
mutation.
Terraform, Helm, and Manifest Deployment Configurations
Recommended API: API v1
- Read: To read deploy configurations, use the
project.deploys
query. - Update: To update a deploy configuration, use the
updateDeploy
mutation.
Terraform, Helm, and Manifest Workflow Runs
Recommended API: API v1
- Create: To create a new workflow run, use the
submitWorkflow
mutation. - Read: To read workflow run details, use the
project.workflow.run
query. - List: To list workflow run details, use the
project.workflow.runs
query. - Abort: To abort a workflow run, use the
abortWorkflowRun
mutation.
API v0 Use Cases
Container App, Docker Image, AWS Lambda, and Google Cloud Run
Recommended API: API v0
- Create: To create a new app, use the
createResourceAlpha
mutation. - Read: To read app details, use the
repo
query. - List: To list app details, use the
user.repos
query. - Update: To update an app, use the
updateProject
mutation. - Delete: To delete an app, use the
deleteRepo
mutation.
Repo Deployment Runs
Recommended API: API v0
- Build and Deploy: To create a new deployment, use the
buildRepo
mutation. - Deploy: To create a new deployment, use the
deployRepo
mutation. - Rollback: To rolbackk a new deployment, use the
rollbackProjectToDeployment
mutation. - Read: To read deployment details, use the
repo.deployment
query. - List: To read deployment details, use the
repo.deployments
query. - Abort: To abort a deployment, use the
abortBuild
mutation.