add restful server