add restful sample