Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to specify nested parameter name in WADL?

Not applicable

I am trying to set up the WADL for an API "Console To-Go", but getting stuck on 1 request where the API I am testing against is a POST with a required variable name with brackets []. If I manually type the field in the body, like field_region[und][value] = "us", it sends through AOK. But if I try to specify that in the WADL, like

<param name="field_region_und_value" apigee:paramName="field_region[und][value]" required="true" type="xsd:string" style="query" default="us">

then Apigee is encoding the brackets in the name, and sending it over as [field_region%5Bund%5D%5Bvalue%5D]

I was looking at http://stackoverflow.com/a/16965623 but just can't seem to figure it out. I tried escaping with apigee:paramName="field_region\[und\]\[value\]" but that just made it worse.

Has anyone else ran in to this issue?

Solved Solved
0 6 981
1 ACCEPTED SOLUTION

Try:

apigee:paramName="field_region[und][value]"

As far as I can tell, that should work, but please do LMK either way.

View solution in original post

6 REPLIES 6