got ef working with api