diff --git a/docs/library/JsonProvider.fsx b/docs/library/JsonProvider.fsx index 42c915f15..66f9a49e4 100644 --- a/docs/library/JsonProvider.fsx +++ b/docs/library/JsonProvider.fsx @@ -306,7 +306,7 @@ let doc = WorldBank.GetSample() (** Note that we can also load the data directly from the web both in the `Load` method and in the type provider sample parameter, and there's an asynchronous `AsyncLoad` method available too: *) let wbReq = - "http://api.worldbank.org/country/cz/indicator/" + "https://api.worldbank.org/country/cz/indicator/" + "GC.DOD.TOTL.GD.ZS?format=json" let docAsync = WorldBank.AsyncLoad(wbReq) diff --git a/docs/library/JsonValue.fsx b/docs/library/JsonValue.fsx index 5185b6c39..0e81a833c 100644 --- a/docs/library/JsonValue.fsx +++ b/docs/library/JsonValue.fsx @@ -147,7 +147,7 @@ let value = JsonValue.Load(__SOURCE_DIRECTORY__ + "../../data/WorldBank.json") asynchronous version available too: *) let wbReq = - "http://api.worldbank.org/country/cz/indicator/" + "https://api.worldbank.org/country/cz/indicator/" + "GC.DOD.TOTL.GD.ZS?format=json" let valueAsync = JsonValue.AsyncLoad(wbReq) diff --git a/src/FSharp.Data.DesignTime/WorldBank/WorldBankProvider.fs b/src/FSharp.Data.DesignTime/WorldBank/WorldBankProvider.fs index cf1813e43..d93be490f 100644 --- a/src/FSharp.Data.DesignTime/WorldBank/WorldBankProvider.fs +++ b/src/FSharp.Data.DesignTime/WorldBank/WorldBankProvider.fs @@ -28,7 +28,7 @@ type public WorldBankProvider(cfg: TypeProviderConfig) as this = let asm = System.Reflection.Assembly.GetExecutingAssembly() let ns = "FSharp.Data" - let defaultServiceUrl = "http://api.worldbank.org/v2" + let defaultServiceUrl = "https://api.worldbank.org/v2" let cacheDuration = TimeSpan.FromDays 30.0 let restCache = createInternetFileCache "WorldBankSchema" cacheDuration diff --git a/tests/FSharp.Data.DesignTime.Tests/expected/WorldBank,World Development Indicators;Global Financial Development,True.expected b/tests/FSharp.Data.DesignTime.Tests/expected/WorldBank,World Development Indicators;Global Financial Development,True.expected index 281c9bf0d..dcf1de286 100644 --- a/tests/FSharp.Data.DesignTime.Tests/expected/WorldBank,World Development Indicators;Global Financial Development,True.expected +++ b/tests/FSharp.Data.DesignTime.Tests/expected/WorldBank,World Development Indicators;Global Financial Development,True.expected @@ -1,6 +1,6 @@ class WorldBankDataProvider : obj static member GetDataContext: () -> WorldBankDataProvider+ServiceTypes+WorldBankDataService - (new WorldBankData("http://api.worldbank.org", "World Development Indicators;Global Financial Development")) + (new WorldBankData("https://api.worldbank.org", "World Development Indicators;Global Financial Development")) class WorldBankDataProvider+ServiceTypes : obj