curl --request GET \
--url https://api.diversion.dev/v0/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>",
"default_branch_id": "<string>",
"default_branch_name": "<string>",
"sync_git_repo_url": "<string>"
}
]
}Get a list of repositories accessibly by the authenticated user
curl --request GET \
--url https://api.diversion.dev/v0/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>",
"default_branch_id": "<string>",
"default_branch_name": "<string>",
"sync_git_repo_url": "<string>"
}
]
}This API uses OAuth 2 with the implicit grant flow
If specified, filters repositories by ownership of the authenticated user. True would mean only repos they own will be returned. False would mean only repos they collaborate on will be returned.
Success
Repo Show child attributes
1 - 128"repo-name"
"example_id"
Seconds since epoch UTC
Optional URL of the git repository being synced with the repo