MCPcopy Create free account
hub / github.com/apitable/apitable / createRequestFunction

Function createRequestFunction

packages/databus-client/common.ts:145–150  ·  view source on GitHub ↗
(axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration)

Source from the content-addressed store, hash-verified

143 * @export
144 */
145export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
146 return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
147 const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
148 return axios.request<T, R>(axiosRequestArgs);
149 };
150}

Callers 4

databusHomeFunction · 0.90
daoGetAiDatasheetIdsFunction · 0.90
daoGetAiPoFunction · 0.90
getDatasheetPackFunction · 0.90

Calls 1

requestMethod · 0.45

Tested by

no test coverage detected