/// <summary>
        /// Loads the service directory from service config files in the "googleapis"
        /// directory under the root layout.
        /// </summary>
        public static ServiceDirectory LoadFromGoogleapis()
        {
            var root           = DirectoryLayout.DetermineRootDirectory();
            var googleapisRoot = Path.Combine(root, "googleapis");

            return(LoadFromGoogleapis(googleapisRoot));
        }
Exemple #2
0
        public static List <ApiMetadata> LoadApis()
        {
            var root = DirectoryLayout.DetermineRootDirectory();

            var json = File.ReadAllText(Path.Combine(root, "apis", "apis.json"));

            return(JsonConvert.DeserializeObject <List <ApiMetadata> >(json));
        }