Added initial REST api code