问题描述
我的api是用ASP Net Core 3.1编写的,我使用的是Swashbuckle.AspNetCore版本5.6.1
我可以使用以下方法创建草率文档:
dotnet swagger tofile --serializeasv2 --host https://example.com/etc ./bin/Debug/netcoreapp3.1/MyWebApi.dll v1
我使用serialiseasV2等
"host": "example.com","basePath": "/etc",
招摇的文档中应该有。
但是,如果我指定我的应用程序托管在--host https://example.com
这样的根目录下
省略了basePath对象/属性。 我希望看到:
"host": "example.com","basePath": "/",
但是相反,basePath不存在,我有办法强制执行此操作吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)