The delete function is established to call a restAPI with delete method. Its return is null or a JSON object.
var ret = rest.delete("http://localhost:8080/restSample/efwRestAPI/customer/u001");
Calling | Returning |
---|---|
rest . delete ( apiUrl ) | null or JSON |
rest . delete ( apiUrl , heads ) | null or JSON |
Parameters | Type | Description |
---|---|---|
apiUrl | String | The url for the called rest api. |
heads | JSON Object | The additional request heads. |