Hi,
I’m using REST API and I delete a record with the following code:
deleteTaskAction : function(task_uuid)
{
this.store.find('task', task_uuid).then(function (task) {
task.deleteRecord();
task.get('isDeleted'); // Check if it is true
task.save(); // Sends request => DELETE - /tasks/<id>
});
}
When sending the request it is DELETE - /tasks/<-id->/
How can I change <-id-> with a text? I’m going to use UUID as ID.
Any ideas?
Thanks!