【发布时间】:2015-05-12 05:43:24
【问题描述】:
我有一个带有可选参数的路由:
[Route("{categoryId?}")]
public HttpResponseMessage Get(int? categoryId=null)
但是,当我不提供 categoryId 的值时,调用会在请求本身中包含 {categoryId?}...
http://myhost/api/%7BcategoryId%7D
【问题讨论】:
标签: swagger swashbuckle swagger-2.0