getAllGroups()

in src/lib/service/custos-service/custos-service-groups.js [105:130]


    getAllGroups({groupId = null, clientId = null, username} = {}) {
        if (username) {
            return this.custosService.axiosInstance.get(
                `${CustosService.ENDPOINTS.GROUPS}/user/group/memberships`,
                {
                    params: {
                        clientId,
                        "profile.username": username
                    }
                }
            );
        } else {
            return this.custosService.axiosInstance.get(
                `${CustosService.ENDPOINTS.GROUPS}/groups`,
                {
                    params: {
                        // offset: offset,
                        // limit: limit,
                        "group.id": groupId,
                        clientId
                    }
                }
            );
        }

    }