Restful webservice implementation