update REST api for respect REST principe http://restcookbook.com/HTTP%20Methods/put-vs-post/