开发者

WCF REST Default UriTemplate

开发者 https://www.devze.com 2023-02-04 08:04 出处:网络
What is the default behavior with WCF Rest when I annotate a method with par开发者_StackOverflowameters with aWebGet attribute, but do not provide a UriTemplate? Is there a default behavior or does WC

What is the default behavior with WCF Rest when I annotate a method with par开发者_StackOverflowameters with a WebGet attribute, but do not provide a UriTemplate? Is there a default behavior or does WCF just not respond to GET requests at all (which is what seems to be happening for me).


Default UriTemplate for operation marked with WebGet is: /OperationName?param1={value}&param2={value} etc. where param1 and param2 are names of first and second operation's parameter. You can check current uri of your operations by enabling help page.

0

精彩评论

暂无评论...
验证码 换一张
取 消