Skip to main content

@hyperledger/identus-edge-agent-sdk / Exports / Domain / Api

Interface: Api

Domain.Api

Api Dependency

Implemented by

Table of contents

Methods

Methods

request

request<T>(httpMethod, url, urlParameters?, httpHeaders?, body?): Promise<ApiResponse<T>>

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

Type parameters

Name
T

Parameters

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

Returns

Promise<ApiResponse<T>>

Defined in

src/domain/models/Api.ts:25