API
Creating API Credentials
Open your user account settings.
Select "Personal Access Tokens"
Create a personal access token, giving it a name and time to expiry.
Copy the token to a safe place.
GraphQL playground
Create a PAT from our Portal (top right corner your name >
Settings>Personal Tokens)Go to https://api.app.gomboc.ai to find our API playground
In the
Headerssection (bottom center), add:
{
"Authorization": "Bearer YOUR-TOKEN"
}Now you can fetch the schema (lower left corner,
Refreshbutton)Next, use the left Explorer tool (top left corner,
Folderbutton) to compose Queries or Mutations by selecting the fields that you care forExecute your query (top right corner,
Playbutton)
Examples with curl
curlGet all the organization project names for the current user:
curl -X POST https://api.app.gomboc.ai/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR-TOKEN" \
-d '{
"query": "query MyQuery { organization { ... on Organization { name projects { name } } } }",
"variables": {}
}'Link a repository to a project:
curl -X POST https://api.app.gomboc.ai/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR-TOKEN" \
-d '{
"query": "mutation MyMutation { linkRepositories(input: {projectId: \"\", providers: {gitProviderId: \"\", selectedRepositoryIds: \"\"}}) { ... on Link { id createdAt createdBy } ... on GombocError { code message } } }",
"variables": {}
}'Last updated