running async rest sample