Hi @HIMADRI BHATTACHARJEE,
I have checked the proxy code you have shared. Found that the target server return {} (null) when you pass the employee id in the path. To fix that you need to disable target.copy.pathsuffix in target default preflow.
<AssignVariable>
<Name>target.copy.pathsuffix</Name>
<Value>false</Value>
</AssignVariable>
You will get all employees after putting this policy in place. If you want to get data for 1 employee id with current target endpoint. you need to use Extract Variable and JS policy.
Let me know if you need the sample code as well.
2 Likes
Thank you it works.Can you explain to me a little bit?
@HIMADRI BHATTACHARJEE, if Ravindra’s answer solved your problem you could go ahead and “Accept” the answer.