added event controller and api endpoint with tests