cancel
Showing results for 
Search instead for 
Did you mean: 

What is the use of Dynamic Attribute in a Rest Channel Adapter in PO?

former_member223090
Participant
0 Kudos

Hi Masters, im working with Rest Services in PO, but i dont understand what is the use of dynamic attribute in the tab Rest Resources, as you can see in the next image:

I found that configuration on a channel, but I do not know what it does.

Can you please help me to understand what is the use of "id_part", and if I want to test my interface using a dynamic attribute, how would I do it?, to test i use postman or soapui, but i dont know how test when i have a dynamic attribute.

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member

above shared blog clear your doubts.

consider you expose any back end data as rest service, for example get operation. You would allow client to send some inputs to serve them. like you ask purchase order number get details, you will ask client to send the po number. in xml based interfaces ie with soap, you will do this by adding ponumber field in the request structure. but in the rest, get operation you don't have option to send payload(request). you will only call url in rest service for get operation and get the result as response.

now how would you pass the input using url.

http://yourhost:443/RestAdapter/getorderDetails/{ordernumber}

so you add fields/variables/attributes/elements in the url itself. and fetch this 40000000007 using dynamic configuration attribute.

http://yourhost:443/RestAdapter/getorderDetails/40000000007

hasan_celebi
Participant
0 Kudos