some RESTful API update,validation