【发布时间】:2017-10-07 22:09:48
【问题描述】:
Swagger 允许设置 parameter type,但使用 SwaggerWcf 我无法编辑此文件,它已生成。它默认设置为body,但我需要它是路径。
有人可能会认为SwaggerWcfParameterAttribute 允许设置此项。但它只允许Description 和Required。
具体怎么设置?
【问题讨论】:
-
看起来不支持路径和查询参数。已经在作者的github上提了一个问题Lgithub.com/abelsilva/swaggerwcf/issues/74
-
@tomredfern 谢谢,但是使用带有 {} 中的变量名的 UriTemplate 它确实将其识别为路径参数。
-
酷 - 我已经关闭了这个问题。
标签: wcf configuration swagger swagger-wcf