Nested rest call

Hi,

How do we call a nested rest API in flowable engine at runtime?
for example,

when I fire http://server/flowable-rest/service/runtime/process-instances, internally in the engine I would like to fire another custom Rest API. Do we have any utils for this already?
Also how do we pass the http context to the nested rest call?

This would be done by using a http task in a process, see https://flowable.org/docs/userguide/index.html#bpmnHttpTask