You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by GitBox <gi...@apache.org> on 2018/11/13 09:37:17 UTC
[GitHub] shyabithd commented on issue #212: Exposing Rest endpoint
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:
users@infra.apache.org
With regards,
Apache Git Services