move base_url and endpoints data into resources file