Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17819] ti.cloud module -> ACS function to delete objects should align with Cloud REST API

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsparity
ReporterBert Grantges
AssigneeUnknown
Created2014-10-03T05:41:03.000+0000
Updated2018-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.

Comments

No comments

JSON Source