I am creating a REST Web service in C# and need to take a list of item (e.g. activity list).
How can we take an array as input in Rest Web Service method?
What would be final URI that will be created for such method?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For what I know (I developed ReST services in Java with the Jersey library), the final URI is not affected by the type of the parameters you pass to the service. So the URI would be something like
http://asite.com/service/activitylist.Then for the implementation (in Java, maybe you could try to look for a REST implementation library in C#), in the client I would put my parameters (any type, arrays too) in a
Formobject (Jersey) and send it with my request.Then in my service I would access my parameters using the annotation
@FormParamand finally process them normally in my service.Hope it helps.