简体   繁体   中英

Handle Path Parameters from API call in WSO2 EI/ESB Integration Studio

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.

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"/>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM