2
如何在WCF Web Api的UriTemplate中声明可选参数? 例如:UriTemplate中的WCF Web Api可选参数
[WebGet(UriTemplate = "?culture={culture}")]
HttpResponseMessage<IEnumerable<Contact>> GetAll();
我需要文化是可选参数。如果文化没有通过,我想收到该参数的空 。
PS。我不想创建具有多个GETALL方法不同UriTemplates解决方案...