Got API working with event store