MCPcopy
hub / github.com/alibaba/lowcode-engine / buildUrl

Function buildUrl

packages/renderer-core/src/utils/request.ts:13–19  ·  view source on GitHub ↗
(dataAPI: any, params: any)

Source from the content-addressed store, hash-verified

11 * @returns
12 */
13export function buildUrl(dataAPI: any, params: any) {
14 const paramStr = serializeParams(params);
15 if (paramStr) {
16 return dataAPI.indexOf('?') > 0 ? `${dataAPI}&${paramStr}` : `${dataAPI}?${paramStr}`;
17 }
18 return dataAPI;
19}
20
21/**
22 * do Get request

Callers 3

request.test.tsFile · 0.90
getFunction · 0.70
jsonpFunction · 0.70

Calls 2

serializeParamsFunction · 0.85
indexOfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…