Ciaran and Alan converting query to REST
Alan and Ciaran converting query to Rest