{ url: 'string', method: 'get', baseUrl: 'https://some-domain.com/api/', // prepended to url unless url is absolute, transformRequest: [function (data) { return data }], transformResponse: [function (data) { return data }], headers: { 'X-Requested-With': 'XMLHttpRequest', }, params: { // url params to be sent with the request, plain object or URLSearchParams Object ID: 12345, }, paramsSerializer: function (params) { return Qs.stringify(params, { arrayFormat: 'brackets' }) }, data: { // the data sent as request body, only applicable for request method 'PUT', 'POST', 'PATCH'. When no transformRequest is set, must be one of the following types: string, plain object, ArrayBuffer, ArrayBufferView, URLSearchParams, FormData(Browser only), File(browser only), Blob(browser only), Stream(Node only), Buffer(Node only) firstName: 'fred', }, timeout: 1000, withCredentials: false// default adapter: function (config) { // allows custom handling of requests which makes testing easier.