This is for getrti REST/JSON apis