Rest controller for events