Skip to main content

Api

@hyperledger/identus-sdk v7.0.0


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

Interface: Api

Defined in: src/domain/models/Api.ts:15

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: src/domain/models/Api.ts:27

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>>