Support
Get a presigned url that will be used to upload a support bundle
API Documentation
Repository Management
Repository Manipulation
- GETGet details of an existing repo.
- DELDelete a repo.
- POSTImport a Git repo into this Diversion repo
- POSTCheck if a git repo could be imported to Diversion
- POSTSync a Git repo to this Diversion repo
- GETGet file tree snapshot. Either one of workspace, branch or commit ID needs to be specified as ref ID.
- GETGet file tree snapshot for a nested tree path. Either one of workspace, branch or commit ID needs to be specified as ref ID.
- GETGet object history in a ref by its latest path
- GETGet file entry (either tree or blob). Either one of workspace, branch or commit ID needs to be specified.
- GETGet blob contents snapshot. Either one of workspace, branch or commit ID needs to be specified.
- GETGet blob contents using storage information, as retrieved from other APIs.
Repository Commit Manipulation
Repository Workspace Manipulation
- GETGet repos workspaces
- POSTCreate a workspace
- GETGet repos workspaces 1
- POSTUpdate workspace name
- POSTWorkspace checkout ref
- GETGet updates needed to be applied by the client to this workspace
- GETGet status of changes in workspace
- POSTReset changes in workspace
- POSTMerge base branch into workspace
- GETGet preferences of the current user
- PUTUpdate the preferences of the current user
- GETGet list of potential clashes with files in other users' workspaces and branches
Repository Branch Manipulation
Repository Tag Manipulation
Repository Shelves Manipulation
File Mutation
Repository Merge Manipulation
- GETDetails of a specific merge in progress
- POSTAfter all conflicts are resolved, finalizes the merge with a commit
- POSTClose an open merge without resolving it
- POSTAccepts a change from one of the branches (base or other)
- POSTUpdate a conflicting file, potentially resolving the conflict.
- GETRetrieve conflicted merges in this repo
- POSTMerge ref into a branch
Collaborators
Repository Content Comparison
Github App Integration
Support
Get a presigned url that will be used to upload a support bundle
GET
/
support
/
bundle
/
upload
curl --request GET \
--url https://api.diversion.dev/v0/support/bundle/upload \
--header 'Authorization: Bearer <token>'
{
"url": "https://dv-blobs.s3.amazonaws.com/",
"fields": {
"x-amz-checksum-algorithm": "SHA1",
"key": "repo_id/dv.blob.40630485-8f8f-4c34-b102-0072ca53ffba",
"x-amz-algorithm": "AWS4-HMAC-SHA256",
"x-amz-credential": "AKAKI6PFK43K4U6ASQ3V2/11111111/eu-central-1/s3/aws4_request",
"x-amz-date": "20221130T095258Z",
"policy": "eyJleHBpcmF0aW9uIjogIjIwMjItMTEtMzBUMTA6NTI6NThaIiwgImNvbmRpdGlvbnMiOiBbeyJ4LWFtei1jaGVja3N1bS1hbGdvcml0aG0iOiAiU0hBMSJ9LCB7ImJ1Y2tldCI6ICJkdi1ibG9icyJ9LCB7ImtleSI6ICJyZXBvX2lkL2R2LmJsb2IuNDA2MzA0ODUtOGY4Zi00YzM0LWIxMDItMDA3MmNhNTNmZmJhIn0sIHsieC1hbXotYWx",
"x-amz-signature": "bc50d66096b27eb2bc4855ef59748f8dfba896529b11480daaa594097fc46713"
}
}
Authorizations
This API uses OAuth 2 with the implicit grant flow
Query Parameters
A description of the support issue
curl --request GET \
--url https://api.diversion.dev/v0/support/bundle/upload \
--header 'Authorization: Bearer <token>'
{
"url": "https://dv-blobs.s3.amazonaws.com/",
"fields": {
"x-amz-checksum-algorithm": "SHA1",
"key": "repo_id/dv.blob.40630485-8f8f-4c34-b102-0072ca53ffba",
"x-amz-algorithm": "AWS4-HMAC-SHA256",
"x-amz-credential": "AKAKI6PFK43K4U6ASQ3V2/11111111/eu-central-1/s3/aws4_request",
"x-amz-date": "20221130T095258Z",
"policy": "eyJleHBpcmF0aW9uIjogIjIwMjItMTEtMzBUMTA6NTI6NThaIiwgImNvbmRpdGlvbnMiOiBbeyJ4LWFtei1jaGVja3N1bS1hbGdvcml0aG0iOiAiU0hBMSJ9LCB7ImJ1Y2tldCI6ICJkdi1ibG9icyJ9LCB7ImtleSI6ICJyZXBvX2lkL2R2LmJsb2IuNDA2MzA0ODUtOGY4Zi00YzM0LWIxMDItMDA3MmNhNTNmZmJhIn0sIHsieC1hbXotYWx",
"x-amz-signature": "bc50d66096b27eb2bc4855ef59748f8dfba896529b11480daaa594097fc46713"
}
}