endpoint | string | the request url |
responseSchema | joi schema | the response Schema that parsed by joi (you must use the joi in your project and insert the response Schema into this field) |
body | <YourType> | the request body |
queryParams | Record<string,any> | the object with the query parameters (they will be serialized automatically) |
translateFunction | (key,options) => string | function that will be called with error text key and params (key, params) |
isErrorTextStraightToOutput | boolean | flag not to prepare error text value - it goes straight from backend ("errorText" if REST and "message" if JSON-RPC) |
extraValidationCallback | (response:<YourType>)=>boolean | callback that can be used for custom response data validation or if you don't want to use joi |
customTimeout | number | milliseconds for cancel the request on timeout (or a full package of requests if the "retry" parameter is activated) |
retry | number | number of requests try to request if the response is negative |
pureJsonFileResponse | boolean | removes any additional headers from request to make it possible to fetch the original json file (availiable only for PureRestRequest) |
ignoreResponseIdCompare | boolean | ignores id comparison in json-rpc requests |