Reputation: 159
Is there any way to remove query string parameters from url in azure api management? Thanks in advance
Upvotes: 4
Views: 4682
Reputation: 530
You can also do this:
<rewrite-uri template="your/template" copy-unmatched-params="false" />
Upvotes: 3
Reputation: 271
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.
Upvotes: 6