First commit to add the REST service calling function