Making service layer restful