I am writing a client wrapper over a RESTful API which can take more than one value for an argument.
Take for example this endpoint
/rest/bug?product=Foo&product=Bar
My class for this is
public class SearchBugRequest : IReturn<BugResponse>
{
[DataMember(Name = "product")]
public string[] Product { get; set; }
}
When I use ToUri
it shows that the ServiceStack is constructing the URI as
/rest/bug?product=Foo%2CBar%2CBlah
ServiceStack is ending up creating a URL which is comma-seperated and URL encoded
How do I force ServiceStack to create the URL which the service expects?