ng2-rest 19.0.39 → 19.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -101,13 +101,14 @@ Example **UrlParams[]** :
101
101
 
102
102
  | Name | Parameters | Description |
103
103
  | :---: | --- | ---: |
104
- | **.array.** | get,post,put,head,delete,jsonp | for everything, but with arrays |
105
- | **get** | `UrlParams[] ` | get model by parameters |
106
- | **post** | `model, UrlParams[] ` | post object model |
107
- | **put** | `model, UrlParams[]` | put object model |
108
- | **head** | `model, UrlParams[]` | get head for model |
109
- | **delete** | `UrlParams[]` | remove object by params |
110
- | **jsonp** | `UrlParams[]` | get jsonp data |
104
+ | **array** | changes response type to array |
105
+ | **get** | `model, UrlParams[] ` | get data |
106
+ | **post** | `model, UrlParams[] ` | create data |
107
+ | **patch** | `model, UrlParams[] ` | change data <br>(effect of changing data may be diffrent with each request) |
108
+ | **put** | `model, UrlParams[]` | change data <br>(can be done multiple times with same effect) |
109
+ | **head** | `model, UrlParams[]` | check data |
110
+ | **delete** | `model, UrlParams[] ` | remove data |
111
+ | **jsonp** | `model, UrlParams[] ` | get jsonp data |
111
112
 
112
113
 
113
114
 
@@ -1413,7 +1413,7 @@ class Rest {
1413
1413
  this._headers = RestHeaders.from(CONTENT_TYPE.APPLICATION_JSON);
1414
1414
  }
1415
1415
  // console.log("_headers", this.headers)
1416
- const result = this.request[method.toLowerCase()](modelUrl, body, this.headers, this.meta, isArray, this.mockHttp);
1416
+ const result = this.request[method.toLowerCase()](modelUrl, body, this.headers, this.meta, isArray, this.mockHttp, axiosOptions);
1417
1417
  this.mockHttp = void 0;
1418
1418
  return result;
1419
1419
  }