0
votes

I'm developing an API using WSO2 Integration Studio ESB Solution Project.

I'm calling this API from postman like "https://localhost:port/context/3542" where '3542' is the value of the path parameter being sent (let's say employeeId).

Further, I want to use this value (3542) in the http endpoint implemented in the same API to make a back-end call.

I'm not able to handle that path parameter. I tried using property mediator, didn't work. Didn't find anything in the official documentation either.

Help appreciated. Thanks already.

1

1 Answers

2
votes

You can use REST_URL_POSTFIX property in order to use the value in the implementation. An example code segment is given below.

<property expression="$axis2:REST_URL_POSTFIX" name="Path"/>