solve Ajax api