add events and a simple API endpoint which creates them