add restful support