start and stop server rest