Four Stars

Route: getting URI parameters and send custom ResponseCode

Hey all

I'm currently trying to develop a route for creating a rest service, but I have two issues :

 

1/ Getting URI parameter

I use a cCXFRS with the URI pattern /{id}, but don't find any ways to retrieve the id in the road (body/header) nor in the cTalendJob that I use after that. What is the best way to do it ?

 

2/ Sending a custom ResponseCode

I wish to choose the response code sending back by the road, by configuring it in the tRouteOutput of my cTalendJob, but no way to find the correct syntax to add it. Same question that above ^^

 

Thanks

 

Capture.JPG

 

  • ESB
1 REPLY
Four Stars

Re: Route: getting URI parameters and send custom ResponseCode

Hello,
Nobody have any clues ?