update rest api index