Added rest functionality to the v2 apis
Added rest functionality to the v2 apis