Exemple #1
0
        private void InitializeRestServices()
        {
            var client = new HttpClient(new NativeMessageHandler())
            {
                BaseAddress = new Uri("https://swapi.dev/api")
            };

            _planetsApi = RestService.For <IPlanetsApi>(client);
        }