public ActionResult Index2(string Path = "") { ///测试调用-生成指定地址对应的api文档-无参数,择生成所有文件(通过/apidoc/config/config.json 来生成文件) var list = new List <string>(); if (!string.IsNullOrEmpty(Path)) { list.Add(Path); } var html = ApiUtils.CreateApiFile_All(list); ViewBag.HtmlStr = html; return(View()); }