export type GetApiApiopsProjectsProjectNameApiProxiesApiProxyNameFullArgs = {projectName: string, apiProxyName: string}; export type GetApiApiopsProjectsProjectNameApiProxiesApiProxyNameFullOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Get full API Proxy JSON for promotion * * GET /apiops/projects/{projectName}/apiProxies/{apiProxyName}/full */ export const getApiApiopsProjectsProjectNameApiProxiesApiProxyNameFull = async (args: GetApiApiopsProjectsProjectNameApiProxiesApiProxyNameFullArgs, options?: GetApiApiopsProjectsProjectNameApiProxiesApiProxyNameFullOptions) => { const {baseUrl = "http://167.86.118.166:32080", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "application/json") const url = `${baseUrl.replace(/\/+$/, '')}/apiops/projects/${encodeURIComponent(String(args.projectName))}/apiProxies/${encodeURIComponent(String(args.apiProxyName))}/full${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "GET", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return (await res.json()) as unknown };