### camel-swagger

The http://camel.apache.org/swagger-java.html[swagger,window=_blank]
module is used for exposing the REST services and their APIs using http://swagger.io/[Swagger,window=_blank].

[source,java,options="nowrap"]
CamelContext camelctx = new DefaultCamelContext();
camelctx.addRoutes(new RouteBuilder() {
    @Override
    public void configure() throws Exception {
        restConfiguration().component("servlet").contextPath("swagger-tests/rest").port(8080);
        rest("/hello").get("/{name}").to("direct:hello");
        from("direct:hello").transform(simple("Hello ${header.name}"));
    }
});
camelctx.start();

