Can I do something like this?
[OperationContract]
[WebInvoke
(
Method = "POST",
ResponseFormat = WebMessageFormat.Json,
RequestFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "/abc{integerParam}"
)
]
ResultStruct abc( int integerParam, CustomClass secondParam );
Idea here being that I can pass first parameter( integer ) in the url, but secondParam comes from POST. Is this even possible?
I started with WCF REST and not sure about how parameters are assigned. Any pointers will be helpful thank you