Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Javascript URI change - what happened to the query parameters?

Hi @Dino-at-Google, @williamssean, @Siddharth Barahalikar

Concern: Need to modify the Apigee proxy request uri before hitting the target endpoint.

Ex: Case 1:

APIGEE Endpoint: https://api.com/basepath/v1/al29/services/newrest/cat?cnumber=7700&a=23

Target Endpoint: https://al29.zforce.com/services/newrest/cat?cnumber=7700&a=23

Case 2: Change in code number (cll59) [this must be dynamic]

APIGEE Endpoint: https://api.com/basepath/v1/cll59/services/newrest/cat?cnumber=7700&a=23

Target Endpoint: https://cll59.zforce.com/services/newrest/cat?cnumber=7700&a=23

Case 3: Query parameters (if the APIGEE endpoint is having 3 query params then the target endpoint should also need to have 3 queryparams)

APIGEE Endpoint: https://api.com/basepath/v1/bll59/services/newrest/cat?cnumber=7700&a=23&d=qw

Target Endpoint: https://bll59.zforce.com/services/newrest/cat?cnumber=7700&a=23&d=qw

So, far using JavaScript I was able to modify the uri but not sure why the query params are not getting attached to target endpoint.

Regards,

Ashwith

1 3 485
3 REPLIES 3