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

How to map request body to query parameter ?

Hello , 

I am working on a proxy where I need to implement the proxy in which request body should be sent as query parameter . I have tried to use AM policy with adding query parameters and EV policy with JSON payload, but it is not sending the correct request to target server. 

request :

"address1" :

{

"city" : A

}

}

 

 

0 2 340
2 REPLIES 2

This sounds like an anti pattern. For a restful API, query parameters should be used for example as a filter on a GET request to return matching response data. If this is actually how your target server works, then your API Proxy should work the same way where it accepts query parameters.