updating restapi view