In the SampleServerAdaptor project which is part of the Mi-Enterprise Apps Developer Toolkit, in the Data Replication folder, there exist functions for "PUT_SCHEMA", "GET_SCHEMA", and "PUT_DATA". The intention of the PUT methods is to configure a Data Replication resource with the schema and data from a SQL Server database and to use the GET method to verify the schema was uploaded. A GET method to verify the data is also possible by using the following method, as needed: 


        private static async Task GetResourceData(string schema, string customer, string resource, Uri serverUrl)

        {

            using (var client = new HttpClient())

            {

                client.BaseAddress = serverUrl;

                client.DefaultRequestHeaders.Accept.Clear();

                client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

                authManager.credService.AddEncryptedCredentialsToClient(client, authManager.UserName, authManager.EncryptedPassword, authManager.ClientKey);

                HttpResponseMessage response = await client.GetAsync("" + customer + "/" + resource);

                if (response.IsSuccessStatusCode)

                {

                    string json = await response.Content.ReadAsStringAsync();

                    Console.WriteLine(json);

                    Console.WriteLine("Get Data successful");

                }

                else

                    Console.WriteLine("Get Data failed");

            }

        }


This method may be useful in verifying that data was been uploaded. In actual Client applications, we recommend using the Data Replication Client API which will handle synchronization and providing access to the local SQLite database with replicated data for your resource.