fix Restful service architecture