Changed rest end point url usage to a relative path