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

Method get

client/src/api/datasource/api-client.ts:45–57  ·  view source on GitHub ↗
(account: string, container: string)

Source from the content-addressed store, hash-verified

43 return response.data;
44 }
45 async get(account: string, container: string): Promise<DataSource> {
46 const response = await this.authUtil.requestWithAuthIfRequired({
47 method: 'get',
48 url: `/api/datasources/${account}/${container}/datasource`,
49 });
50 if (response.status !== 200) {
51 throw new Error(`Unexpected status code: ${response.status}`);
52 }
53 if (!response.data) {
54 return null;
55 }
56 return response.data;
57 }
58 async getSasToken(account: string, container: string, filepath: string, write: boolean): Promise<Object> {
59 try {
60 const response = await this.authUtil.requestWithAuthIfRequired({

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected