Layer7 API Management

Expand all | Collapse all

What is the best method to append query parameter to URL query?

  • 1.  What is the best method to append query parameter to URL query?

    Posted Jul 17, 2018 12:20 PM

    Using CA API Gateway 9.1, I need an elegant and efficient way to append a custom parameter (i.e. the ${requestid} variable) to the URL query before it is sent to the HTTP backend. I need to add debug data that will appear in the access logs of our backends so we can match API Gateway requests with the backend request.

     

    So far the only way I found is this:

     

    I then simply add the ${new_querystring} variable to the URL passed to the backend in the Route via HTTP assertion. It works fine, but I was hoping for something a bit more direct than that.

     

    Is there a better way?



  • 2.  Re: What is the best method to append query parameter to URL query?
    Best Answer

    Broadcom Employee
    Posted Jul 18, 2018 01:05 PM

    Hi Yanick,

     

    I think the simple concatenation you have shown above is the best option here. I'm not sure what could be more direct.

     

    Regards,

    Joe