added rest server basic implementation