shyabithd commented on issue #212: Exposing Rest endpoint
URL: https://github.com/apache/camel-k/issues/212#issuecomment-438199618
 
 
   Hi @lburgazzoli,
   
   Thank you for the quick response. 
   This is just to get an idea how things work. Here is the route file.
   
   import org.apache.camel.LoggingLevel;
   import org.apache.camel.builder.RouteBuilder;
   
   public class RestTest extends RouteBuilder {
     @Override
     public void configure() throws Exception {
       restConfiguration().component("restlet").host("localhost").port("8080");
       rest().get("/hello").to("direct:hello");
       from("direct:hello").log(LoggingLevel.INFO, "Hello 
World").transform().simple("Hello World");
     }
   }
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to