Array parameters in query not working

Not applicable

How to handle array type in query parameter like hobbies[]=reading&hobbies[]=singing?

I tried like this "<param name="hobbies" apigee:paramName="hobbies[]" type="xsd:string" style="query"></param>" but these doesn't reach my api end point.

How could I send such values?

0 6 1,094
6 REPLIES 6

Aby, can you clarify what you mean by "I tried like this" ? Is that a part of a WADL file? if so, what are you then doing with that WADL file? We need some more context.

Yes, it is a WADL file part. It is not a public api. Can you please send your email id, so that we can send you more details.

Not applicable

Array parameters in "console to go" is not sending values correctly.

The array parameter does not reach the api end.

Is there any documentation regarding the correct way to specify array parameters in the wadl file so that the "console to go" sends it in the correct format?

The context is same as that in https://community.apigee.com/questions/424/how-to-specify-nested-parameter-name-in-wadl.html?

Any update on it?

Not applicable

@Dino

Can you help us with the answer? if you need any further info let us know..

the context is same as explained in https://community.apigee.com/questions/424/how-to-specify-nested-parameter-name-in-wadl.html?

Not applicable

The same parameter when specified manually it goes in different way than the one specified in wadl file.

See the two values of "field_lastname[und][value]" in the post body in the picture.

The most disappointing thing is that this issue is reported by @alex chousmith around six months back and it is still not fixed. This makes me think twice if we have to go with apigee or not.

128-28-wadl-vs-typed.png

Not applicable

@Dino Can you give us an update?