Skip to main content

Api

@hyperledger/identus-sdk v8.0.0


@hyperledger/identus-sdk / overview / Domain / Api

Interface: Api

Defined in: packages/shared/domain/build/index.d.ts:202

Api Dependency

Methods

request()

request<T>(httpMethod: HttpMethod, url: string, urlParameters?: Map<string, string>, httpHeaders?: Map<string, string>, body?: string | Record<string, any>): Promise<ApiResponse<T>>

Defined in: packages/shared/domain/build/index.d.ts:214

make a request return an ApiResponse on any 2xx status throw ApiError otherwise

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
httpMethodHttpMethod-
urlstring-
urlParameters?Map<string, string>-
httpHeaders?Map<string, string>-
body?string | Record<string, any>-

Returns

Promise<ApiResponse<T>>