In this case, the request came to the endpoint: /pet/findByStatus
The "requestUrlFromClient" variable in the script policy contains the value "/pet/findByStatus". If this Service was Soap, the value of this variable would be the name of the Soap method.
When the "requestBackendUrlToTargetAPI" variable in the script policy is changed to the value "/xxx/yyy", the current query param is added to the request, regardless of which method the request comes from, and it will go to the following address: