简体   繁体   English

如何在Restful webservice中发送数组中的参数列表

[英]How to send list of parameters in an array in Restful webservice

I'm using the below webservice url. 我正在使用下面的webservice网址。 But here I'm using the question_id for 3 times.Is there any way to send the question_id in an array of values instead of sending the question_id for 3 times? 但是在这里我使用了question_id 3次。有没有办法在一组值中发送question_id而不是发送问题3次?

http://localhost:8080/MyWebService/rest/myservices?cust_id=3545482386&question_id=6&question_id=1&question_id=3

No, that's the good format for GET request parameter. 不,这是GET请求参数的良好格式。

With POST request, you could use JSON to achieve this. 使用POST请求,您可以使用JSON来实现此目的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM