@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
Name | Type |
---|---|
httpMethod | HttpMethod |
url | string |
urlParameters? | Map <string , string > |
httpHeaders? | Map <string , string > |
body? | string | Record <string , any > |
Returns
Promise
<ApiResponse
<T
>>