Fixed the rest-api urls to get executed at run-time