add Events to rest API