created a rest server