Layer7 API Management

  • 1.  Http URL with Select Query in HTTPS Route

    Posted Oct 11, 2017 07:22 AM

    Hi guys I am using API Gateway 9.1 and I am trying to make a call to below url using HTTPS route

     

    https://abc.foo.com/query?q=Select a from b where c='foo2'

     

    I have also done URL encoding 

    https://abc.foo.com/query%3Fq%3DSelect%20a%20from%20b%20where%20c%3D%27foo2%27

     

     

    The http route is giving error, assertion failed.

     

    How can I add query param like select query in Htpps route & make it work?

     

    Thanks



  • 2.  Re: Http URL with Select Query in HTTPS Route

    Broadcom Employee
    Posted Oct 11, 2017 05:30 PM

    Good afternoon,

     

    I've just tested this on a 9.1 Gateway using the request.url.query context variable in the HTTP Routing assertion. This may have a problem depending on the variable used to pass back. Please share a sample policy so we can assist further.

     

    Sincerely,

     

    Stephen Hughes

    Director, CA Support



  • 3.  Re: Http URL with Select Query in HTTPS Route
    Best Answer

    Posted Oct 11, 2017 06:25 PM

    Hi Stephen, I got it working...earlier I was encoding ? & = and hence assertion was failing.

    The below URL worked for me..

    https://abc.foo.com/query?q=Select%20a%20from%20b%20where%20c%3D%27foo2%27