You can use inbound policy
Rewrite URL
The rewrite-uri policy converts a request URL from its public form to the form expected by the web service, as shown in the following example.
Public URL - http://api.example.com/storenumber/ordernumber
Request URL - http://api.example.com/v2/US/hardware/storenumber&ordernumber?City&State
This policy can be used when a human and/or browser-friendly URL should be transformed into the URL format expected by the web service. This policy only needs to be applied when exposing an alternative URL format, such as clean URLs, RESTful URLs, user-friendly URLs or SEO-friendly URLs that are purely structural URLs that do not contain a query string and instead contain only the path of the resource (after the scheme and the authority). This is often done for aesthetic, usability, or search engine optimization (SEO) purposes.
You can get further information from this link
https://learn.microsoft.com/en-us/azure/api-management/api-management-transformation-policies#RewriteURL