restapi example