private static string GetRamlContents() { var config = GlobalConfiguration.Configuration; var apiExplorer = config.Services.GetApiExplorer(); var apiExplorerService = new ApiExplorerService(apiExplorer, config.VirtualPathRoot); var ramlDocument = apiExplorerService.GetRaml(); var ramlContents = new RamlSerializer().Serialize(ramlDocument); return ramlContents; }
public virtual RamlDocument GetRamlContents(ApiExplorerService apiExplorerService) { var ramlDocument = apiExplorerService.GetRaml(); return(ramlDocument); }