You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[options]| <code>object</code> || Additional options for new instance |
155
-
|[options.baseUrl]| <code>string</code> | <code>"\"https://api.route4me.com\""</code> | Base URL for sending requests |
159
+
|[options.baseUrl]| <code>string</code> | <code>"https://api.route4me.com"</code> | Base URL for sending requests |
160
+
|[options.baseUrl5]| <code>string</code> | <code>"https://wh.route4me.com/modules"</code> | Base URL for sending requests to backend API v.5 |
|[options.promise]| <code>boolean</code> \| <code>function</code> | <code>false</code> | Use promises instead of callbacks. Usage: * `false` means _no promises, use callbacks_; * `true` means _use global `Promise`_ as promises' constructor; * `constructor (function)` forces to use explicit Promise library. See also Examples section of this documentation. |
158
163
|[options.validate]| <code>module:route4me-node~ValidationCallback</code> | <code>false</code> | Validator for input and output parameters of the API methods. Set **falsey** value to skip autovalidation (in favor of manual check). |
|[options.validationContext]| <code>null</code> \| <code>string</code> \| <code>function</code> | <code></code> | * `null` cause validation disabled (TODO: test this case) * `string` is threated as the name of JSON Schema * `function` will be used for validation. |
113
+
|[options.returns]| <code>object</code> || Return values if present the return will be object with next structure { status, // e.g. 200, 201, 202, etc ... // other fields, e.g. 'jobId' res // result of request } |
114
+
|[options.returns.status]| <code>boolean</code> || Return status |
|[options.validationContext]| <code>null</code> \| <code>string</code> \| <code>function</code> | <code></code> | * `null` cause validation disabled (TODO: test this case) * `string` is threated as the name of JSON Schema * `function` will be used for validation. |
140
+
|[options.returns]| <code>object</code> || Return values if present the return will be object with next structure { status, // e.g. 200, 201, 202, etc ... // other fields, e.g. 'jobId' res // result of request } |
141
+
|[options.returns.status]| <code>boolean</code> || Return status |
0 commit comments