monsoonrainbow
monsoonrainbow

Reputation: 159

Remove Query String Parameters

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

Upvotes: 4

Views: 4682

Answers (2)

Ewerton
Ewerton

Reputation: 530

You can also do this:

<rewrite-uri template="your/template" copy-unmatched-params="false" />

Upvotes: 3

Matt Farmer
Matt Farmer

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

Related Questions