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! Go to Solution.
Try:
apigee:paramName="field_region[und][value]"
As far as I can tell, that should work, but please do LMK either way.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |