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

Creating a API proxy having both URI and query param

Hello,

Can we create an API proxy where we have a URI and a query param at the end? for example:
https://www.abc.com/V2/DEMO/param1/{param1}/param2/{param2}?queryParam={queryParam},

where https://www.abc.com/V2/example/ is the base path

and the HTTPTargetConnection path is "/services/apexrest/vlocity_cmt/v1/integrationprocedure/DEMO_VIP?param1={VariablePrefix.param1}&param2={VariablePrefix.param2}&queryParam={VariablePrefix.queryParam}"

 

Any help would be appreciated.!
thanks in advance.!

Solved Solved
0 6 1,700
1 ACCEPTED SOLUTION

Here's a working example (attached).

To see it working, first deploy it into an environment, then invoke the proxy like this: 

curl -i $myhostname/ev-and-qparam-mapping/agreementId/A-12345/catalog/Cat-ABC/offer/Offer456-P

 

You can start a trace(Debug) session to see the extracted variables, and to see the request that gets assembled and sent to the back end. 

View solution in original post

6 REPLIES 6