First thank you for your respond. But I don't really understand it. How is this method overloading? Maybe my example was a bit misleading. I'm not having the method twice. I was just showing how it works, and how it doesn't.
Basically I want to have an arbitrary amount of optional parameters that I can add to an URI (api/myResource?parameter1=foo¶meter2=bar). This worked fine in WCF Web API.
MartinJ.
Member
243 Points
80 Posts
Re: Query Parameter with POST/PUT
Apr 16, 2012 02:11 PM|LINK
First thank you for your respond. But I don't really understand it. How is this method overloading? Maybe my example was a bit misleading. I'm not having the method twice. I was just showing how it works, and how it doesn't.
Basically I want to have an arbitrary amount of optional parameters that I can add to an URI (api/myResource?parameter1=foo¶meter2=bar). This worked fine in WCF Web API.