updated rest endpoints