added event resource, created event API endpoint