MCPcopy
hub / github.com/ModelEngine-Group/nexent / getGroup

Function getGroup

frontend/services/groupService.ts:98–115  ·  view source on GitHub ↗
(groupId: number)

Source from the content-addressed store, hash-verified

96 * Get group details by group ID
97 */
98export async function getGroup(groupId: number): Promise<Group> {
99 try {
100 const response = await fetchWithAuth(
101 API_ENDPOINTS.groups.detail(groupId),
102 {
103 method: "GET",
104 }
105 );
106
107 const result: GroupDetailResponse = await response.json();
108 return result.data;
109 } catch (error) {
110 if (error instanceof ApiError) {
111 throw error;
112 }
113 throw new ApiError(500, "Failed to fetch group details");
114 }
115}
116
117/**
118 * Get group members

Callers

nothing calls this directly

Calls 2

fetchWithAuthFunction · 0.90
jsonMethod · 0.45

Tested by

no test coverage detected