Is there any way to remove query string parameters from url in azure api management? Thanks in advance
Asked
Active
Viewed 3,771 times
3

monsoonrainbow
- 149
- 3
- 10
2 Answers
5
yes you can do this by setting the URL template on the operation screen in the publisher portal. Just include the parameters you wish to forward on to your backend, the others will not be.
Alternatively, you can use the set-query-parameter policy, which gives you full control of the parameters you are using.

Matt Farmer
- 261
- 1
- 1
-
Using set-query-parameters in policy did the trick thank you :) – monsoonrainbow Jun 27 '16 at 20:08
1
You can also do this:
<rewrite-uri template="your/template" copy-unmatched-params="false" />

Ewerton
- 470
- 7
- 20