update rest endpoints