Updated rest api