rest for title is working also the update function is working in java code