2

Is there any way to remove query string parameters from url in azure api management? Thanks in advance

monsoonrainbow
  • 139
  • 2
  • 10

2 Answers2

4

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
  • 251
  • 1
  • 1
1

You can also do this:

<rewrite-uri template="your/template" copy-unmatched-params="false" />
Ewertonews
  • 349
  • 3
  • 16