[TIMOB-17819] ti.cloud module -> ACS function to delete objects should align with Cloud REST API
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | parity |
Reporter | Bert Grantges |
Assignee | Unknown |
Created | 2014-10-03T05:41:03.000+0000 |
Updated | 2018-02-28T20:04:11.000+0000 |
Description
Currently using Cloud REST API, you need to call the "delete" function on the cloud object.
Ex
curl -b cookies.txt -c cookies.txt -X DELETE "https://api.cloud.appcelerator.com/v1/objects/car/delete.json?key=<YOUR APP APP KEY>&pretty_json=true&id=4ec42e91d9ca72c507000010"
However on the ti.cloud
module for Titanium, the function on the ACS object is titled remove
.
Ex.
Cloud.Objects.remove({
classname: 'cars',
id: savedCar1.id
}, function (e) {
if (e.success) {
alert('Success');
} else {
alert('Error:\n' +
((e.error && e.message) || JSON.stringify(e)));
}
});
It would cause less confusion, if the ti.cloud
module function on ACS Objects to delete the object was entitled delete
to create better parity with the Cloud documentation and REST API.
No comments