Layer7 API Management

 View Only
  • 1.  Routing to Get Method with BODY 

    Posted Jan 25, 2019 10:30 AM

    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.



  • 2.  Re: Routing to Get Method with BODY 
    Best Answer

    Broadcom Employee
    Posted Jan 25, 2019 12:02 PM

    Good morning,

     

    This can be accomplished by checking off the "Transmit body regardless of request method" on the HTTP Tab of the HTTP Routing Assertion.

     

     

    Sincerely,

     

    Stephen Hughes

    Broadcom Support



  • 3.  Re: Routing to Get Method with BODY 

    Posted Jan 30, 2019 11:25 AM

    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.

     

    Ciao Stefan