make restful server