basic rest server