private static string GetApiName(IbgeApis api) { return(api switch { IbgeApis.Locations => "v1/localidades/", IbgeApis.Names => "v2/censos/nomes/", IbgeApis.NamesRanking => "v2/censos/nomes/ranking/", _ => throw new System.NotImplementedException() });
public static IbgeConnector GetIbgeConnector(IbgeApis api, string urlBase = "") { return(new IbgeConnector(GetApiName(api), urlBase)); }