我正在使用Swashbuckle作为我的ASP.NET核心项目,我想修改我的index.html,我看到了这个页面:https://github.com/domaindrivendev/Swashbuckle/tree/swagger_2.0#provide-your-own-indexhtml,它解释了如何做到这一点,但问题是CustomAsset方法没有't seem to exist anymore. I can use the InjectOnCompleteJavascript method and InjectStylesheet without any problem, but there'没有CustomAsset包括我的HTML页面 . 你知道是否有另一种方法可以替换swagger UI?
谢谢,
克劳德
1 回答
我在诅咒为什么在dotnetcore中找不到这种方法 .
我从Swashbuckle.AspNetCore的1.0.0版开始,发现在1.2.0版本中出现了一个名为IndexStream的新属性
这看起来像是提供Index.html覆盖的新方法 .