Reading JSON to HTTP client processor

asked 2018-02-09 15:33:56 -0600

SD gravatar image

I am reading JSON messages from a file (Directory Origin) and using Http client Processor to post JSON messages to a REST API. How can I provide request messages from the directory origin to Request data in the HTTP client? I am looking to send dynamic requests using the Http Client Processor.

edit retag flag offensive close merge delete

Comments

What kind of dynamic requests in Http Client processor do you have in mind? Example: if you want to set Resource URL in Http Client process based on some value from origin JSON message, you can use expression language such as `http://localhost:3000/users/${record:value("/result/userId")}`

tmcgrath gravatar imagetmcgrath ( 2018-02-14 07:36:14 -0600 )edit