The delete
function calls a REST API using the DELETE method. It returns 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 REST API. |
heads |
JSON Object |
Additional request headers. |