ajax rest client completed