cancel
Showing results for 
Search instead for 
Did you mean: 

REST Sender adapter: Get request for dynamic attributes

former_member232455
Participant
0 Kudos
141

Hi All,

In rest sender adapter, the url pattern will be in either of the format for get method http://URL/v1/bp/101 or http://URL/v1/bp?id=101

how can we configure both url pattern element and get variable in same channel to get the response.

Regards,

Janardhan

View Entire Topic
p244500
Active Contributor
0 Kudos

Hi,

I guess this is what your looking.

PI REST Adapter – Defining a dynamic endpoint

former_member232455
Participant
0 Kudos

Hi Nawanandana,

http://URL/v1/bp/101-->; To achieve this pattern we can use URL pattern element approach.

http://URL/v1/bp?id=101-->; To achieve this pattern we can use GET variable approach.

But in single channel can we configure both approaches and get the result? because customer will send request in any of the above format.

Regards,

Janardhan

p244500
Active Contributor
0 Kudos

Single channel is question because I haven't done this but it will be possible according to this blog. Just try it.