Create  restful webservice api