I'm struggling with this, so I tried setting up a dead simple servlet
example and can't even get that working.
Using plain Jetty its fine, but I don't seem able to wire it into camel .
I created this GIST to illustrate it:
https://gist.github.com/tdudgeon/69ff3cdeb4e3ac68df87
Jetty responds on
localhost:8000/
but the helloServlet does not respond on anything under
localhost:8000/hello/
What am I doing wrong?
Tim
On 22/06/2015 15:36, Claus Ibsen wrote:
Hi
You need to use the camel-swagger as a servlet
http://camel.apache.org/swagger
How you configure this can be done with web.xml or some fancy @servlet
annotations.
The camel route can be in java dsl and camel-swagger servlet discovers
this using JMX - so they have to be in the same JVM, or better in same
deployment unit. There is a pending ticket to make it separate and so
you can specify which camel context you wanna see the api.
There is an example in the examples dir using tomcat.
On Mon, Jun 22, 2015 at 4:24 PM, Tim Dudgeon <tdudgeon...@gmail.com> wrote:
Can someone provide some info on how to get swagger set up with the REST DSL
in a simple jetty environment.
e.g. something very similar to what Christian described here:
http://blog.christianposta.com/camel/easy-rest-endpoints-with-apache-camel-2-14/
e.g. Java only, no Spring.
Thanks
Tim