how i can add params?

Hi all! I have a link "https://yandex.com/search/?text=abcde&lr=50". BUT in apigee I can only add this "https://yandex.com/search/". Question: how can I add these "=abcde&lr=50" parameters in apigee?

8181-qweqweqw.png

0 3 176
3 REPLIES 3

siddheshnaik
Participant II

You can't add query params in Proxy base path.
There are many ways to add query param to target request, simplest one is Assign message policy(https://docs.apigee.com/api-platform/reference/policies/assign-message-policy).

Refer to below question for more details: https://community.apigee.com/questions/13299/how-to-set-request-parameters-in-targetendpoint.html

@uporaba ,

The Proxy BasePath is basically the URI fragment (for example /weather) appended to the base URL of an API proxy (for example, http://myorg-test.apigee.net). BasePath must be unique within an environment. Uniqueness is validated when an API proxy is generated or imported. You can read more about this here.

So you can't specify the query/form parameters or headers in Proxy Base Path.

When you make the API call to the API Proxy, you can pass the query/form parameters or headers and you can read them using the flow variables in the API Proxy through appropriate policies like AssignMessage, JavaScript etc.

For example, here's one community post that shows how to extract query parameters and its values in API Proxy.

ok, thanks for help @AMAR DEVEGOWDA and @Siddhesh Naik