Added rest call by angular JS.