Constructors
constructor
-
Parameters
-
__namedParameters: { apiUrl?: string; credentials?: null | Credentials } = ...
-
Optional apiUrl?: string
-
Optional credentials?: null | Credentials
Methods
Private handleResponse
- handleResponse<Type>(response: Response, emptyResponse?: boolean): Promise<Type>
-
Type parameters
Parameters
-
response: Response
-
emptyResponse: boolean = false
Returns Promise<Type>
Protected request
- request<Type>(method: HttpMethod, endpoint: string, data?: Record<string, any>, __namedParameters?: { emptyResponse?: boolean }): Promise<Type>
-
Type parameters
Parameters
-
method: HttpMethod
-
endpoint: string
-
data: Record<string, any> = ...
-
__namedParameters: { emptyResponse?: boolean } = ...
-
Optional emptyResponse?: boolean
Returns Promise<Type>
Base class for clients.