dual api support for http client in REST work item handler