You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by camel_case <cs...@remedypartners.com> on 2016/03/14 22:44:56 UTC

Swagger with 2.16.2 and servlet

Was using this example below as a model with version 2.14.1
http://icantrap.github.io/2015/01/11/swagger-integration-with-standalone-camel-using-embedded-jetty/
Trying to upgrade to 2.16.2 or 2.16.3 did not work.  Played with it
considerably as the servlet changes and you use camel-swagger-java
Generally, we don't use xml, relying on routes but placing the swagger
server itself in the application appeared relatively straightforward and
simple.  
Then the routes just have description, cors, a few other things. 
Kept getting can not parse json/yaml errors in the UI. 
Is there no updated example like the one referenced above?




--
View this message in context: http://camel.465427.n5.nabble.com/Swagger-with-2-16-2-and-servlet-tp5779061.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Swagger with 2.16.2 and servlet

Posted by Claus Ibsen <cl...@gmail.com>.
There is a bunch of rest and swagger examples here
https://github.com/apache/camel/tree/master/examples

On Mon, Mar 14, 2016 at 10:44 PM, camel_case
<cs...@remedypartners.com> wrote:
> Was using this example below as a model with version 2.14.1
> http://icantrap.github.io/2015/01/11/swagger-integration-with-standalone-camel-using-embedded-jetty/
> Trying to upgrade to 2.16.2 or 2.16.3 did not work.  Played with it
> considerably as the servlet changes and you use camel-swagger-java
> Generally, we don't use xml, relying on routes but placing the swagger
> server itself in the application appeared relatively straightforward and
> simple.
> Then the routes just have description, cors, a few other things.
> Kept getting can not parse json/yaml errors in the UI.
> Is there no updated example like the one referenced above?
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Swagger-with-2-16-2-and-servlet-tp5779061.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2