How to add query parameter in basepath url in Apigee X

Hi,

I have a proxy that need to create where the Base path URL is having a query parameter
Source :- https://Host/Basepath/reports?reportTypeCode=106
Where the target endpoint is 
Target endpoint :- https://Host/reporting-ingest/api/v1/reports?reportTypeCode=106

Can you please help on appending the query parameter in base path URL.
I know we cannot add query parameter in base path but client wants the base path with query parameter.

Solved Solved
4 4 217
2 ACCEPTED SOLUTIONS

can you please give an example of what you mean. by this:?

Can you please help on appending the query parameter in base path URL.

What should the targetURL look like?

View solution in original post

You could

  • use a basepath in you proxy endpoint of /api/pxy/fintrac/1.0 , AND
  • specify the TargetEndpoint as a scheme://host (eg, https://targethost)

Then Apigee would proxy any inbound request arriving on htt​​ps://Host/api/pxy/fintrac/1.0/reporting-ingest/api/v1/reports?reportTypeCode=106 , to htt​ps://targetHost/reporting-ingest/api/v1/reports?reportTypeCode=106

View solution in original post

4 REPLIES 4

can you please give an example of what you mean. by this:?

Can you please help on appending the query parameter in base path URL.

What should the targetURL look like?

You could

  • use a basepath in you proxy endpoint of /api/pxy/fintrac/1.0 , AND
  • specify the TargetEndpoint as a scheme://host (eg, https://targethost)

Then Apigee would proxy any inbound request arriving on htt​​ps://Host/api/pxy/fintrac/1.0/reporting-ingest/api/v1/reports?reportTypeCode=106 , to htt​ps://targetHost/reporting-ingest/api/v1/reports?reportTypeCode=106

Ok.let me try this