REST API for events