Class ResourceEndpointClient
Constructors
ResourceEndpointClient(ResourceEndpointProperties, AuthProvider, string, any)
Declaration
new ResourceEndpointClient(resourceEndpoint: ResourceEndpointProperties, authProvider: AuthProvider, serviceAuthType?: string, serviceAuthContext?: any)
Parameters
Type |
Name |
Description |
ResourceEndpointProperties |
resourceEndpoint |
|
AuthProvider |
authProvider |
|
string |
serviceAuthType |
|
any |
serviceAuthContext |
|
Properties
httpEndpoint
Declaration
Property Value
Methods
delete(string | HttpRequestConfig, HttpRequestConfig)
Declaration
function delete<T>(urlOrConfig?: string | HttpRequestConfig, config?: HttpRequestConfig)
Parameters
Returns
Type |
Description |
Promise<AxiosResponse<T>> |
|
get(string | HttpRequestConfig, HttpRequestConfig)
Declaration
function get<T>(urlOrConfig?: string | HttpRequestConfig, config?: HttpRequestConfig)
Parameters
Returns
Type |
Description |
Promise<AxiosResponse<T>> |
|
patch(Partial<T>, string | HttpRequestConfig, HttpRequestConfig)
Declaration
function patch<T>(body: Partial<T>, urlOrConfig?: string | HttpRequestConfig, config?: HttpRequestConfig)
Parameters
Returns
Type |
Description |
Promise<AxiosResponse<T>> |
|
post(T, string | HttpRequestConfig, HttpRequestConfig)
Declaration
function post<T>(body: T, urlOrConfig?: string | HttpRequestConfig, config?: HttpRequestConfig)
Parameters
Returns
Type |
Description |
Promise<AxiosResponse<T>> |
|
put(T, string | HttpRequestConfig, HttpRequestConfig)
Declaration
function put<T>(body: T, urlOrConfig?: string | HttpRequestConfig, config?: HttpRequestConfig)
Parameters
Returns
Type |
Description |
Promise<AxiosResponse<T>> |
|