adding Event resource api