我有C#RESTful api方法:
[OperationContract(Name = "GetSeveralTickets")]
[WebInvoke(Method = "GET",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare)]
string GetTickets(int[] ids); // int[] cannot be converted by 'QueryStringConverter'.
如何为http-get方法提供int数组?
我需要访问此服务: GET / tickets / show_many?ids = {id1,id2 ...}