AnsweredAssumed Answered

Sorting input query string- parameters alphabetically

Question asked by MKarthik on Sep 17, 2016
Latest reply on Sep 20, 2016 by MKarthik
We have a API end point that has a GET method and takes in parameters P1, P2, P3 etc....We have a requirement to sort the parameters in the input query string alphabetically and then set their corresponding values against it.   For eg : Input url is https:// host:port/email=V1&coupon=V2&include=V3&channel=v4   We want to take the query string part of url and arrange it to a string  like below   channel=v4&coupon=V2&email=V1&include=V3  Can the above be done using a set of assertions and put within a policy fragment. 

Overall aim is to get the resulting string ( parameters arranged alphabetically ) and generate hash key out of that, then route to an end point that requires the hash key to be submitted in the header for authentication.