Make api uri and domain dynamic