I have another question related to the PUT and POST requests. So, here I have a form which has the fields like : "name" and "link".
On submit of that form, I am not able to post that form to the server on doing this.model.save();
Also, how do I understand when will the model be invoking a POST and when will it invoke a PUT request? Since I dont have any "id" attribute from my api response so I dont have any id for my model too.
So how do I pass my form field value on click of the "Submit" button as a POST request?
Also, Is there a way I can invoke the request: For eg: If i hit on the "Update" button of my form, I will call a function from my model
updateModel:function(options){
this.update("update","/messages",[options])
}
or a get request can be read like this
getModel:function(options){
this.update("read","/messages",[options])
}