add basic rest server