add basic rest service functionality