event rest api tested and bug fixed