I understood that UriTemplate supports only string parameters unless you have them in form like below (id={id} etc.). Here for example:
Can I pass non-string to WCF RESTful service using UriTemplate?
However I can't make the following work. Even if I change 2nd parameter to string (not string array). Is this kind of operation callable from a browser by typing URL in address-field?
[WebGet(ResponseFormat = WebMessageFormat.Json,
UriTemplate = "id={id}/legend={legend}/x={x}/y={y}")]
public Stream GetMapPicture(int id, string[] legend, double x, double y)
All works if I change parameters to strings and type:
http://localhost:8732/Service1/id=732/legend=[343434, 555]/x=43/y=23
Thanks!