added event rest api