updated rest server api