api path -> url
passing api url from config