Routing expression with optional query parameter #14667
Unanswered
aleksei-oecd
asked this question in
Help
Replies: 1 comment
-
Currently the expression does not support |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need to define a route that will activate if in uri the query parameter my_param has a certain value or this parameter is not present at all. I use expressions router (KONG_ROUTER_FLAVOR = expressions) and I've tried without success syntaxt like bellow:
http.queries.my_param == null || http.queries.my_param == "some_value"
http.queries.my_param == "" || http.queries.my_param == "some_value"
Is it possible at all ?
Beta Was this translation helpful? Give feedback.
All reactions