curl --request GET \
--url https://api.diversion.dev/v0/organizations/{org_id}/members/{user_id}/repos \
--header 'Authorization: Bearer <token>'{
"object": "Repo",
"items": [
{
"repo_name": "repo-name",
"repo_id": "example_id",
"size_bytes": 123,
"owner_user_id": "<string>",
"created_timestamp": 123,
"description": "<string>",
"organization_id": "<string>",
"default_branch_id": "<string>",
"default_branch_name": "<string>",
"sync_git_repo_url": "<string>",
"sync_git_level": 4,
"digest_method": "sha1",
"def_auto_forwarding_enabled": true
}
]
}Returns a list of repositories the member will lose access to if removed.
curl --request GET \
--url https://api.diversion.dev/v0/organizations/{org_id}/members/{user_id}/repos \
--header 'Authorization: Bearer <token>'{
"object": "Repo",
"items": [
{
"repo_name": "repo-name",
"repo_id": "example_id",
"size_bytes": 123,
"owner_user_id": "<string>",
"created_timestamp": 123,
"description": "<string>",
"organization_id": "<string>",
"default_branch_id": "<string>",
"default_branch_name": "<string>",
"sync_git_repo_url": "<string>",
"sync_git_level": 4,
"digest_method": "sha1",
"def_auto_forwarding_enabled": true
}
]
}This API uses OAuth 2 with the implicit grant flow
An ID of an organization
A user's ID
3"Google_1192874509253"
Success
Repo Show child attributes
1 - 128"repo-name"
"example_id"
Seconds since epoch UTC
The ID of the organization to associate the repo with. If not provided, the system will use the user's organization if they belong to exactly one.
Optional URL of the git repository being synced with the repo
One of: 1 - latest commit of default branch, 2 - default branch with history, 3 - full repo with history, 4 - full repo with history and sync [default]
1, 2, 3, 4 The method used to calculate the digest of BLOBs in the repo.
sha1, md5