In CA API gateway we are required to sent a Get request to a customer URL. Now customer has provided us demo in postman API but Hitting his URL using GET method but also providing Payload(Body) in RAW format. Without the body the URL respose back as error. My question is in gateway does a payload is passed with body when routing using GET method. How can we replicate the postman scenario in gateway.
This can be accomplished by checking off the "Transmit body regardless of request method" on the HTTP Tab of the HTTP Routing Assertion.
Stephen was already providing you the required Setting in the properties of the "Route via HTTP(S)"-Assertion.
Background is, that some HTTP-methods normally are NOT including any payload. And exactly for these methods the API-Gateway is ignoring such a payload by default.
The following is stated in docops:
Select the Transmit body regardless of request method check box to include the request body with the outbound request, even if the HTTP request method is one that normally would not include a body (for example, GET, HEAD, DELETE, or OPTIONS).
We had this issue in the past as well and I was also not aware of this behavior of the API-Gateway.