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

Function get_team

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

Get a single team by its slug. Team slugs are resolved within the organization selected by the client's base URL/subdomain, allowing multiple organizations to each have a team with the same slug.

(
    client: &StorageClient,
    org_slug: &str,
    team_slug: &str,
)

Source from the content-addressed store, hash-verified

56/// base URL/subdomain, allowing multiple organizations to each have a team
57/// with the same slug.
58pub async fn get_team(
59 client: &StorageClient,
60 org_slug: &str,
61 team_slug: &str,
62) -> TeamsResult<TeamInfo> {
63 debug_assert_eq!(client.org_slug(), org_slug);
64 let path = format!("/teams/{team_slug}");
65 client
66 .get(&path)
67 .await
68 .map_err(|e| map_remote_error(e, format!("team {team_slug}")))
69}
70
71/// Update a team's metadata.
72///

Callers 1

executeMethod · 0.85

Calls 2

map_remote_errorFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected