MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / list

Method list

client/src/api/datasource/api-client.ts:32–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 });
31 }
32 async list(): Promise<DataSource[]> {
33 const response = await this.authUtil.requestWithAuthIfRequired({
34 method: 'get',
35 url: '/api/datasources',
36 });
37 if (response.status !== 200) {
38 throw new Error(`Unexpected status code: ${response.status}`);
39 }
40 if (!response.data) {
41 return null;
42 }
43 return response.data;
44 }
45 async get(account: string, container: string): Promise<DataSource> {
46 const response = await this.authUtil.requestWithAuthIfRequired({
47 method: 'get',

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected