Hi, I am developing 2 REST api using camel REST DSL with Servlet. I am using SPring DSL and have followed the example camel-example-swagger-java which comes as part of 2.16 release.
I am not able to get the Swagger definition for the REST API that are defined in Spring xml. I am only able to see the details of defined in web.xml. { "swagger" : "2.0", "info" : { "description" : "API Description for", "version" : "1", "title" : " Services" }, "host" : "localhost:18080", "basePath" : "/server/rest", "schemes" : [ "http" ] } My REST Service def is as follow: <camelContext id="camelContext" xmlns="http://camel.apache.org/schema/spring"> <camel:restConfiguration bindingMode="json" component="servlet" contextPath="server/rest" port="18080"> <camel:dataFormatProperty key="prettyPrint" value="true" /> </camel:restConfiguration> <camel:rest path="/test" consumes="application/json" produces="application/json"> <camel:description>TEST Service</camel:description> <camel:get uri="/generate/data/name/{name}/flag/{flag}" type="java.util.HashMap" outType="java.util.HashMap"> <camel:description> Generate Keys </camel:description> <camel:param name="name" type="path" description="Consumer name." dataType="string" /> <camel:param name="flag" type="path" description="Allowed values are Y or N." dataType="string" /> <camel:route> <camel:process ref="requestTransformer" /> <camel:process ref="myProcessor"></camel:process> </camel:route> </camel:get> </camel:rest> </camelContext> My REST URL: http://localhost:18080/server/rest/test/generate/data/name/{name}/flag/{flag} Please help with any pointers. Regards Sumit -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Swagger-Java-Unable-to-generate-the-API-Swagger-definition-tp5776570.html Sent from the Camel - Users mailing list archive at Nabble.com.