You can use the custom-query-parameters-parser
policy to set variables such as request attributes and other execution context attributes.
You can use it to change the way query parameters are extracted.
Semicolon character (;
) is not considered as a separator:
http://host:port/my-api?filter=field1;field2
will be computed with this query param: filter: ['field1;field']
Warning
|
Policies are executed after flow evaluation: for a condition on a flow using Expression Language to test query parameters, they will be extracted the regular way by the Gateway, with ; as a separator.
|