api for events to include start and end time