How can I invoke a RESTful service through Apache Camel?

前端 未结 4 1199
Happy的楠姐
Happy的楠姐 2020-12-31 12:41

I am currently using a HTTP method for invoking some URL which will create a JIRA issue.

Now I want to use Apache Camel, how can I use that?

I need to invoke

4条回答
  •  失恋的感觉
    2020-12-31 12:42

    You could easily use the CXFRS Component; if you need to do it using the HTTP Component for some reason you could easily use that as well:

    
          http://localhost:8080/rest/api/2/project/${header.myKey}/components
    
    
    

    And of course you will need to enrich your message with the myKey header before getting to this part of the route.

提交回复
热议问题