Added rest controller API