我正在寻找一个使用 CodeReady Blueprint CXF-RS 组件的示例,以便服务器接受 REST POST 和客户端 POST 到外部 REST 接口并将响应返回给原始请求者。一路 JSON 数据。
<camelContext id="_context1" xmlns="http://camel.apache.org/schema/blueprint">
<route id="_route1">
<from id="_from1" uri="cxfrs:beanId:address">
<description>Accepts POST from BPMS to change grade in Extenal REST API</description>
</from>
<log id="_log1" message="Got here"/>
<to id="_to1" uri="cxfrs:beanId:address">
<description>POST to External API with JSON data and return the JSON response to requestor</description>
</to>
</route>
</camelContext>