JOIN OUR WEEKLY CHALLENGE
API_Bloom_banner

API Bloom is a weekly prize-winning challenge in the Ready! API Community. Each week, we assign a task that you need to accomplish to become a winner. See the rules here.

WEEKLY PRIZES
Top 3 members who give the biggest number of replies during the week will get $50, $35, and $15 gift cards.

THIS WEEK TASK
Post the biggest number of replies to questions asked on the Ready! API forums.

PREVIOS WINNERS
1st - @nmrao, 2nd - @msiadak, 3rd - @Debz

Reply
Highlighted
N/A
Posts: 1
Registered: ‎08-01-2011

How to do REST array (method?p=1&p=2&=3)

In jQuery and ASP.NET a simply array of parameters can be passed as repeating the same parameter value:

http://mymethod?p=1&p=2&p=3

In asp.net this can be received as 'int p[]', and an array of 3 integers is received.

How to send this rest request from SOAPUI? Does not seem to allow repeated parameters.

Phil
N/A
Posts: 1
Registered: ‎08-06-2012

Re: How to do REST array (method?p=1&p=2&=3)

Hello,

I know i post is old but i found the response :

  • Create a new ressource

  • Add parameter and check the option : "Disables Encoding" (ex : id)

  • Create a new request

  • When you fill the field's value u can write this "&id=...&id=...".


With this method u can send a url like this : http://localhost/?id=1&id2&id=3 and get an array in the server side