Rest api testing example