Consuming the REST services