Restful API updated