cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Rest Receiver Adapter Multiple End points

08-18-2021 6:43 PM
anupam_ghosh2 Active Contributor
1684 views 0 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hi Experts,

Good day!

I am new to Rest Adapter, and I am to develop a FTP -> PO -> REST process flow scenario.

The part where I need help is that there are multiple API End Point on the target (REST) as seen on image below.

1. Where will I configure these API End Points on the Integration Directory(receiver communication channel)?

2. This is the initial configuration I have made so far on ID. Also, Is the URL Pattern correct or need to edit something on the URL maybe for variable substitution?

Appreciate your thoughts on this.

Thank You,

Carlo

0 Likes
View Entire Topic
anupam_ghosh2
Active Contributor
0 Likes

Hi Carlo,

Here are response to your query

1. Where will I configure these API End Points on the Integration Directory(receiver communication channel)?

Ans) In receiver communication channel but you need to access dynamic configuration in UDF.

2.) This is the initial configuration I have made so far on ID. Also, Is the URL Pattern correct or need to edit something on the URL maybe for variable substitution?

ans)

Th UDF you need is shown below

String dyn_res = "http://v1#/"; // Parameter replace in REST URL tab in the actual receiver REST channel
DynamicConfiguration dynConf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); 
DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/REST", "REST_URL"); dynConf.put(key, dyn_res); 
return "";

the channel will be configured like this

Therefore the URL can be set as per requirement from the UDF itself.

Regards

Anupam