Do i have to write the attribute [WebGet] above every operation to get access via “GET”?
I want that my default ACCESS METHOD will be “GET” not “POST”. Is there a way to do it on web.config/app.config?
Do i have to write the attribute [WebGet] above every operation to get access
Share
There’s no way to do it only in the configuration. You’ll need to create a new behavior, derived from
WebHttpBehavior, and change the default (add a [WebGet] if nothing is there) – see code below. Then, if you want, you can define a behavior configuration extension to use that behavior via config.