Post update methods in backend and rest.js