Download OpenAPI specification:Download
goliac is a golang REST application skeleton The base path for all the APIs is "/api/v1".
{- "organization": "string",
- "lastSyncTime": "string",
- "lastSyncError": "string",
- "nbUsers": 0,
- "nbUsersExternal": 0,
- "nbTeams": 0,
- "nbRepos": 0,
- "version": "string",
- "detailedErrors": [
- "string"
], - "detailedWarnings": [
- "string"
], - "nbWorkflows": 0
}Get user and associated teams and repos
| userID required | string non-empty user name |
{- "githubid": "string",
- "teams": [
- {
- "name": "string",
- "path": "string",
- "owners": [
- "string"
], - "members": [
- "string"
]
}
], - "repositories": [
- {
- "name": "string",
- "visibility": "string",
- "autoMergeAllowed": true,
- "deleteBranchOnMerge": true,
- "allowUpdateBranch": true,
- "archived": true
}
]
}Get collaborator and repos
| collaboratorID required | string non-empty collaborator name |
{- "githubid": "string",
- "repositories": [
- {
- "name": "string",
- "visibility": "string",
- "autoMergeAllowed": true,
- "deleteBranchOnMerge": true,
- "allowUpdateBranch": true,
- "archived": true
}
]
}Get team and associated users and repos
| teamID required | string non-empty team name |
{- "name": "string",
- "path": "string",
- "owners": [
- {
- "name": "string",
- "githubid": "string",
- "external": true
}
], - "members": [
- {
- "name": "string",
- "githubid": "string",
- "external": true
}
], - "repositories": [
- {
- "name": "string",
- "visibility": "string",
- "autoMergeAllowed": true,
- "deleteBranchOnMerge": true,
- "allowUpdateBranch": true,
- "archived": true
}
]
}Get repository and associated teams
| repositoryID required | string non-empty repository slug name |
{- "organization": "string",
- "name": "string",
- "visibility": "string",
- "archived": true,
- "autoMergeAllowed": true,
- "deleteBranchOnMerge": true,
- "allowUpdateBranch": true,
- "teams": [
- {
- "name": "string",
- "access": "string"
}
], - "collaborators": [
- {
- "name": "string",
- "access": "string"
}
], - "variables": [
- {
- "name": "string",
- "value": "string"
}
], - "secrets": [
- {
- "name": "string"
}
], - "environments": [
- {
- "name": "string",
- "variables": [
- {
- "name": "string",
- "value": "string"
}
], - "secrets": [
- {
- "name": "string"
}
]
}
]
}Create a Repository via Goliac
Repository to create
| repository_name required | string non-empty |
| github_token required | string >= 40 characters |
| team_name required | string non-empty |
| visibility | string Default: "private" |
| default_branch | string non-empty Default: "main" |
{- "repository_name": "string",
- "github_token": "stringstringstringstringstringstringstri",
- "team_name": "string",
- "visibility": "private",
- "default_branch": "main"
}{- "message": "string"
}Submit a workflow for execution
| workflowName required | string workflow name |
Workflow execution properties
required | Array of objects |
| explanation required | string non-empty |
{- "properties": [
- {
- "name": "string",
- "value": "string"
}
], - "explanation": "string"
}{- "message": "string",
- "tracking_urls": [
- "string"
]
}