Can we Do something about this .. I meant we can read a json file and add that directly to the response model instead of Create a class and annotating it..It well be efficient right..
On Thu, Jan 28, 2016 at 4:02 PM, Claus Ibsen <claus.ib...@gmail.com> wrote: > No this is not possible. > > On Thu, Jan 28, 2016 at 11:27 AM, Erukala Uttam <2311ut...@gmail.com> > wrote: > > In this route , > > > > rest(“/sample”).post(“/test”) .description("Health Check route"). > > outType(User.class) > > > > .produces("application/json") > > > > .param().dataType("string").name("id").type(RestParamType.query > > > > ).description("partnerId of the Service").required(true) > > > > .endParam() > > > > .param() > > > > .dataType("string").name("secret").type(RestParamType.query > > > > ).description("partner_secret of the Service").required(true) > > > > .endParam() > > > > .param() > > > > > .dataType("application/json").name("body").type(RestParamType.body).description(" > > request body").required(false) > > > > .endParam() > > > > .responseMessage() > > > > .code(200).message("returns the health details of the > > application").endResponseMessage().responseMessage(); > > > > > > In the Above route instead of specifying the outType as a Class name.Cam > we > > give a json file which has a schema of the required format of the > response > > ?Can we do something like that ... > > > > -- > Claus Ibsen > ----------------- > http://davsclaus.com @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2 >