Can I pass non-string to WCF RESTful service using UriTemplate?

前端 未结 4 627
我在风中等你
我在风中等你 2020-12-02 21:54

Can I do the following?

[OperationContract]
[WebGet(UriTemplate = \"/foo/{id}\")]
string GetFoo(int id);

I\'d like my service to function a

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 22:30

    Unfortunately you must do the parsing yourself if you want to use the UriTemplate.

提交回复
热议问题