test rest api config sample ajax jquery