Skip to content

IFetchApiManager

katanakit-js / IFetchApiManager

Defined in: types/core/http.ts:93

Contract of the fetch facade.

useAddRequestInterceptor(interceptor): () => void;

Defined in: types/core/http.ts:97

Parameter Type
interceptor RequestInterceptor

() => void


useBuildUrl(
apiName,
endpointName,
options?
): string;

Defined in: types/core/http.ts:96

Parameter Type
apiName string
endpointName string
options? UrlOptions

string


useDelete<T>(
apiName,
endpointName,
urlOptions?
): Promise<FetchResult<T>>;

Defined in: types/core/http.ts:136

Type Parameter Default type
T unknown
Parameter Type
apiName string
endpointName string
urlOptions? UrlOptions

Promise<FetchResult<T>>


useFetch<T>(
apiName,
endpointName,
options?
): Promise<FetchResult<T>>;

Defined in: types/core/http.ts:98

Type Parameter Default type
T unknown
Parameter Type
apiName string
endpointName string
options? FetchOptions<T>

Promise<FetchResult<T>>


useFetchApi<T>(
apiName,
endpointName,
options?
): Promise<FetchResult<T>>;

Defined in: types/core/http.ts:103

Type Parameter Default type
T unknown
Parameter Type
apiName string
endpointName string
options? FetchOptions<T>

Promise<FetchResult<T>>


useGet<T>(
apiName,
endpointName,
urlOptions?
): Promise<FetchResult<T>>;

Defined in: types/core/http.ts:108

Type Parameter Default type
T unknown
Parameter Type
apiName string
endpointName string
urlOptions? UrlOptions

Promise<FetchResult<T>>


useGetApi<T>(
apiName,
endpointName,
urlOptions?
): Promise<FetchResult<T>>;

Defined in: types/core/http.ts:113

Type Parameter Default type
T unknown
Parameter Type
apiName string
endpointName string
urlOptions? UrlOptions

Promise<FetchResult<T>>


useGetApis(): ApisConfig;

Defined in: types/core/http.ts:94

ApisConfig


useGetApisConfig(): ApisConfig;

Defined in: types/core/http.ts:95

ApisConfig


usePatch<T>(
apiName,
endpointName,
body?,
urlOptions?
): Promise<FetchResult<T>>;

Defined in: types/core/http.ts:130

Type Parameter Default type
T unknown
Parameter Type
apiName string
endpointName string
body? unknown
urlOptions? UrlOptions

Promise<FetchResult<T>>


usePost<T>(
apiName,
endpointName,
body?,
urlOptions?
): Promise<FetchResult<T>>;

Defined in: types/core/http.ts:118

Type Parameter Default type
T unknown
Parameter Type
apiName string
endpointName string
body? unknown
urlOptions? UrlOptions

Promise<FetchResult<T>>


usePut<T>(
apiName,
endpointName,
body?,
urlOptions?
): Promise<FetchResult<T>>;

Defined in: types/core/http.ts:124

Type Parameter Default type
T unknown
Parameter Type
apiName string
endpointName string
body? unknown
urlOptions? UrlOptions

Promise<FetchResult<T>>