async Task <ApiTemplateResources> GenerateMultipleApisTemplateAsync(List <string> multipleApiNames, string baseFilesGenerationDirectory, ExtractorParameters extractorParameters) { var generalApiTemplateResourcesStorage = new ApiTemplateResources(); foreach (var apiName in multipleApiNames) { var specificApiTemplateResources = await this.GenerateSingleApiTemplateResourcesAsync(apiName, baseFilesGenerationDirectory, extractorParameters); generalApiTemplateResourcesStorage.AddResourcesData(specificApiTemplateResources); } return(generalApiTemplateResourcesStorage); }
async Task <ApiTemplateResources> GenerateCurrentRevisionApiTemplateResourcesAsync(string apiName, string baseFilesGenerationDirectory, ExtractorParameters extractorParameters) { var apiTemplateResources = new ApiTemplateResources(); // gets the current revision of this api and will remove "isCurrent" paramter var versionedApiResource = await this.GenerateApiTemplateResourceAsVersioned(apiName, extractorParameters); apiTemplateResources.Apis.Add(versionedApiResource); var relatedTemplateResources = await this.apiExtractor.GetApiRelatedTemplateResourcesAsync(apiName, baseFilesGenerationDirectory, extractorParameters); apiTemplateResources.AddResourcesData(relatedTemplateResources); return(apiTemplateResources); }