mercredi 14 mai 2014

Is it possible to NOT send a field on CREATE, but yes on UPDATE

I have a 'version' property in my model. I need this to be included in any update (put) calls, but NOT included in the initial create (post) call. I have tried using the versionProperty config, but the version is sent even on create. Is there a way to exclude it?

Also, related to this, is it possible to exclude sending the ID when creating a record? The server assigns it, but if it is included the server rejects the request.





Aucun commentaire:

Enregistrer un commentaire