MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / list_teams

Function list_teams

atomic-teams/src/team.rs:20–26  ·  view source on GitHub ↗

List all teams in an organization. Returns every team the caller has visibility into. Secret teams are only returned when the caller is a member or an org admin. Team routes are org-scoped by the client's base URL/subdomain. For example, `org_slug = "delta"` means the client targets `https://delta. `, so `/teams/engineering` is Delta's engineering team. The same slug under `https://atomic

(client: &StorageClient, org_slug: &str)

Source from the content-addressed store, hash-verified

18/// `/teams/engineering` is Delta's engineering team. The same slug under
19/// `https://atomic.<domain>/teams/engineering` is a different team.
20pub async fn list_teams(client: &StorageClient, org_slug: &str) -> TeamsResult<Vec<TeamInfo>> {
21 debug_assert_eq!(client.org_slug(), org_slug);
22 client
23 .get("/teams")
24 .await
25 .map_err(|e| map_remote_error(e, format!("org {org_slug}")))
26}
27
28/// Create a new team in an organization.
29///

Callers 1

executeMethod · 0.85

Calls 2

map_remote_errorFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected